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 |
C program to find all possible outcomes of a dice?
When should a far pointer be used?
Write a program to remove the C comments(/* */) and C++ comments(//) from a file. The file should be declared in command line.
What is the difference between struct and typedef struct in c?
Write a program to print prime nums from 1-20 using c programing?
what will be the output for the following main() { printf("hi" "hello"); }
What is difference between && and & in c?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
What is string function in c?
How do you determine if a string is a palindrome?
What does the c preprocessor do?
what is the use of ~ in c lang?????