return
0;
- it is possible to end a program (or function)
prior to its normal termination by using an "extra" return
0; statement. The drawback to this strategy
is that it ends the entire program (or function) at the point where the return
0; statement is placed. This may not always be what you had in
mind. Oftentimes, the programmer may wish to simply
end a "process" within the program, but continue with
the remainder of the programming code.
return 0;
returns a value of 0 to the IDE indicating that the program reached
normal termination. |