Basic codes in C++ program
Hi Rocky
Return(0) is a function in C++ that causes the main function to end. It may be followed by a code or just used at the end of the program. 0 of the return code symbolizes that the program was correct and worked as expected giving desired output. It is one of the most common ways to end a C++ program.
It is not necessary that you cannot add code after using return(0) your program can be extended beyond return(0) and the output will be the same as desired.
You can also say that it is used to exit from a function.
This site is a cool site. Not only for technical solution.
So glad that people here help a lot of users to understand things about software's and hardware topic..
Thanks guy,
Thank you Gracia.