+ 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 Answers
+ 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