C Programming :: Basic Concepts - Discussion
Home > C Programming > Basic Concepts > MCQs Questions Discussion
78 / 90
Choose the correct option.
What does main return on successful execution?
A1
B0
C-1
DNonzero
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
STEP-BY-STEP
The return type of the main() function basically tells about its exit status. As a convention, the exit status of 0 tells the compiler that it's a success and other non-zero values tell that it's a failure. More precisely, return 0 tells the compiler that the end of code was reached and the program was executed successfully.
Read Full Answer
Report Error
Please Login First Click Here