+ 6
Write a program in C++ and start with int main(). . and end with return 0 .. if we remove 0 with another number ..
then the program will excute or not..... ???
4 ответов
+ 4
yes
+ 2
If you want to write a simple single program then it doesn't matter the number of return. Also you can omit return. But if your program works with another ones, you ought to return 0 as a symbol of success finish.
0
Of course, number that returns by main is code of program end, that compiler shows to you. You can return any number as you want)))