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?
Answers were Sorted based on User's Feedback
Answer / ranjeet roy
if the return type of our function is int ..
thn it is maindetory to return something like 0 nd 1..
but if we declare the return type void
then doesnt require
| Is This Answer Correct ? | 21 Yes | 1 No |
Answer / sivavendra
Yes, it is mandatory to return some value if return type of main() is specified as "int"
| Is This Answer Correct ? | 0 Yes | 0 No |
Where register variables are stored in c?
How can I access memory located at a certain address?
How do you determine whether to use a stream function or a low-level function?
Can we change the value of static variable in c?
Write a simple code fragment that will check if a number is positive or negative.
How is null defined in c?
what will be maximum number of comparisons when number of elements are given?
Program to swap the any two elements in an array containing N number of elements?
1 Answers Bosch, Glenwood, Ugam Solutions,
Between macros and functions,which is better to use and why?
What is a built-in function in C?
write a program for egyptian fractions in c?
wat is the meaning of c?