What is the correct value to return to the operating system upon the successful completion of a program?
A. 1
B. -1
C. 0
D. Program do no return a value.
E. 2
Answer: Option C
Join The Discussion
Comments ( 12 )
Related Questions on C Fundamentals
What is the primary purpose of a function prototype in C?
A. Declare a variable
B. Declare a function
C. Define a function
D. Assign a value
What is the correct syntax for declaring a variable in C?
A. int variable_name;
B. variable_name = 5;
C. variable_name int;
D. int = variable_name;
Zero is by default which returns the program or terminates the program
IN TRUE IT GIVE ONE IN FALSE IT GIVE 0 SO HOW IT POSSIBLE
what if I use Void main?
why zero
thanks shaaf
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"
How it is zero.?? Can anyone explain this...
plese give explination how it is happen?i think program do not retun a value in c programing.
how??
return value is not using in c
how?
option B