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
Whats s or c mean?
Explain union.
What type is sizeof?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
What does the function toupper() do?
What is the difference between malloc() and calloc()?
What is the difference between int main and void main in c?
What is printf () in c?
What does node * mean?
What is the difference between struct and typedef struct in c?
How can I insert or delete a line (or record) in the middle of a file?
Write a Program to find whether the given number or string is palindrome.
Why do we need a structure?
What is the difference between test design and test case design?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset