Computer Science, asked by siddeshwar9002, 1 year ago

When the execution of the function terminated?

Answers

Answered by smartykrishna30
5

The main function serves as the starting point for program execution. It usually controls program execution by directing the calls to other functions in the program. A program usually stops executing at the end of main, although it can terminate at other points in the program for a variety of reasons.

Answered by lovingheart
1

Termination is the process of abruptly ending the execution of the function.

Explanation:

So a function would have been called either by a function or from the main program, whatever may be a stack would have been loaded for each execution, so the function which has executed will unload the stack and leaves the control to the calling portion of the program.

The program might run or may not depends on the content that it expects from the function which has terminated abruptly.

Similar questions