0

Why we use return in program?

Harry

25th Nov 2017, 1:59 AM
gursewak singh
gursewak singh - avatar
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.
25th Nov 2017, 2:15 AM
jay
jay - avatar
+ 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
25th Nov 2017, 2:10 AM
Jordan Chapman
Jordan Chapman - avatar