+ 1
Got a small question 😁(Difference)?
Here is a code of C... #include <stdio.h> /* A simple C program * Version 1.0 */ int main() { /* Output a string */ printf("Hello World!"); return 0; } What is the reason for including return 0 on it👆,and this same code also works fine without the return 0 also works....so what is the purpose of including return 0...
3 ответов
+ 1
A successful program returns a 0, non-zero value means failure.
Yp you can run the main function without the return 0. It works the fine. But it's a good practice to follow.
+ 1
Ok thanks 👍