What happens to the stack when a function is called?
Answers
Answered by
0
What happens when a function is called in C++? ... Initially when 'main'function is called, the stack frame for 'main' is also made. Whenever main calls other function then thatfunction's stack frame is made. It means that a pointer (known as stackpointer) keeps track of the functionswhich are called.
Similar questions