+ 2
why int main() is declared at the beginning of program ?
int describes a integer, that if we are including an integer we have to include "int" but why we have to include int at the beginning of the program ??
6 Respostas
+ 2
Please delete your duplicate post.
Check out the last paragraph of the second page of the link.
https://www.sololearn.com/learn/C/2911/?ref=app
+ 2
return 0; This statement terminates the main() function and returns the value 0 to the calling process. The number 0 generally means that our program has successfully executed. Any other number indicates that the program has failed.
+ 2
Since the code says int main(), you have to return an int. If the program returns the value 0, then the program has no issues. Otherwise, something went wrong.
+ 1
ohhh
+ 1
kkk i get it !!! thank you bro....
0
i understood about the main() but what about the "int"