Concept Flow - Call stack behavior
Program starts
Call main()
Call function A
Call function B
Function B returns
Function A returns
main() returns
Program ends
The program starts by calling main(), which may call other functions. Each call adds a frame to the stack. When a function finishes, its frame is removed, returning control to the caller.
