Computer Science, asked by prashant12330, 10 months ago

why after the running of return keywords, no more line of codes is executable ??​

Answers

Answered by shivjal
1

Answer:

return(0); // logical end of the program. So in C++ and other similar languages, the return statement is used to stop the execution of the program when in main( ). While we can only have one physical end (e.g. end or closing brace) of the program, we can have one or more logical ends or return statements.

Answered by Anonymous
1

Answer:

logical end of the program. So in C++ and other similar languages, the return statement is used to stop the execution of the program when in main( ). While we can only have one physical end (e.g. end or closing brace) of the program, we can have one or more logical ends or return statements.

Similar questions