+ 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..... ???

1st May 2017, 8:36 AM
P∆WAN M∆URY∆
P∆WAN M∆URY∆ - avatar
3 Respuestas
+ 4
yes
1st May 2017, 8:41 AM
jay
jay - avatar
+ 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.
1st May 2017, 8:45 AM
Александр Громозонов
Александр Громозонов - avatar
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)))
5th Jul 2017, 6:37 PM
Роман Красников
Роман Красников - avatar