In C program, at end of the program we will give as "return 0"
and "return 1", what they indicate? Is it mandatory to specify
them?
Answer Posted / hari
yeah....... its necessary to return some value if the return type of main() is 'int'.
in fact we can return any valid integer.
here are few examples... all are correct;;;;;;>
return 0;
return 1;
return 100;
return -3;
return 'c';
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
Explain what are its uses in c programming?
cavium networks written test pattern ..
What is structure pointer in c?
c program for searching a student details among 10 student details
What are categories used for in c?
What is a constant?
What is p in text message?
How can I find out if there are characters available for reading?
largest Of three Number using without if condition?
List the different types of c tokens?
Is c is a low level language?
What is include directive in c?
What is the sizeof () a pointer?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
How will you write a code for accessing the length of an array without assigning it to another variable?