0
Why we use return in program?
Harry
2 Answers
+ 13
Text from first lesson, last slide in C++ tutorial:
Return
The last instruction in the program is the return statement. The line return 0; terminates the main() function and causes it to return the value 0 to the calling process. A non-zero value (usually of 1) signals abnormal termination.
+ 4
it's basically how you return something through a function. you'll learn about it when you learn about functions and it'll all make sense i promise