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
What are the different file extensions involved when programming in C?
Is c compiled or interpreted?
What is a method in c?
Where can I get an ansi-compatible lint?
Write a program to reverse a given number in c?
Why do we use return in c?
Is it possible to have a function as a parameter in another function?
Is c procedural or object oriented?
How can I manipulate strings of multibyte characters?
What does a function declared as pascal do differently?
Can two or more operators such as and be combined in a single line of program code?
Do you know what are bitwise shift operators in c programming?
How #define works?
writ a program to compare using strcmp VIVA and viva with its output.
count = 0; for (i = 1;i < = 10; i++);count = count + i; Value of count after execution of the above statements will be a) 0 b) 11 c) 55 d) array