168k views
5 votes
T F When a function terminates, it always branches back to main, regardless of where it was called from.

User RobDil
by
4.9k points

1 Answer

4 votes

Answer: False

Step-by-step explanation:

The given statement is false that, it is not necessary that it branches back to the main function when the function terminated in the given function despite, where it is actually call from the actual function.

As, many function contain local variable in the main function of the body so that is why it cannot return to its main function body. The return statement basically determine the actual value that function actually returned.

User Pocketfullofcheese
by
5.1k points