ExamVeda
Login
Home
This question belongs to C Program C Fundamentals
C Fundamentals
?

What is the correct value to return to the operating system upon the successful completion of a program?

Answer & Solution
Correct Answer: Option C
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

12 Comments
Aftar Khan
Aftar Khan 4 years ago
Zero is by default which returns the program or terminates the program
Vihan Singh
Vihan Singh 4 years ago
IN TRUE IT GIVE ONE IN FALSE IT GIVE 0 SO HOW IT POSSIBLE
Vivesh Singh
Vivesh Singh 7 years ago
what if I use Void main?
M Talha
M Talha 8 years ago
why zero
Pratik Shete
Pratik Shete 9 years ago
thanks shaaf
Shaaf Hassan
Shaaf Hassan 9 years ago
C Programming return 0
In C and C++ programs the main function is of type int and therefore it should return an integer value. The return value of the main function is considered the "Exit Status" of the application. On most operating systems returning 0 is a success status like saying "The program worked fine"
AMBATI MALLIKARJUNA
AMBATI MALLIKARJUNA 9 years ago
How it is zero.?? Can anyone explain this...
Jaydip Phopse
Jaydip Phopse 9 years ago
plese give explination how it is happen?i think program do not retun a value in c programing.
Klsa Sathish
Klsa Sathish 9 years ago
how??
Dhiraj Chandanshive
Dhiraj Chandanshive 9 years ago
return value is not using in c
Pranay Jadhav
Pranay Jadhav 9 years ago
how?
Shyama Sundar
Shyama Sundar 10 years ago
option B