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
How do we print only part of a string in c?
What is bash c?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
When should we use pointers in a c program?
What are types of functions?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
What is echo in c programming?
Tell us something about keyword 'auto'.
What is a keyword?
What is the difference between void main and main in c?
Explain about C function prototype?
what is event driven software and what is procedural driven software?
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
How can I do serial ("comm") port I/O?
What is the best style for code layout in c?