Write short note on int main ( ) ?
Answers
Write short note on int main ( ) ?
int main – 'int main' means that our function needs to return some integer at the end of the execution and we do so by returning 0 at the end of the program. 0 is the standard for the “successful execution of the program”. main – In C89, the unspecified return type defaults to int.
Some other knowledge
What is difference between void main and int main?
The void main() indicates that the main() function will not return any value, but the int main() indicates that the main() can return integer type data. When our program is simple, and it is not going to terminate before reaching the last line of the code, or the code is error free, then we can use the void main().
If it is helpful to you then plzz follow me and mark me as brainlist.
40 thanks = 40 thanks
10 thanks = 15 thanks
Answer:
Int main means 5hat our function needs to return some integer at the end of the execution and we di so by returning 0 at the end of program