Computer Science, asked by nivindhan2003, 7 months ago

Write short note on int main ( ) ?​

Answers

Answered by Anonymous
5

{\bigstar}\large{\boxed{\sf{\red{Question}}}}

Write short note on int main ( ) ?

{\bigstar}\large{\boxed{\sf{\red{Answer}}}}

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

Answered by pilajidherange85
1

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

Similar questions