why main() method should not return any value
Answers were Sorted based on User's Feedback
Answer / nadeem khokhar
execution starts from the main function. no function can call it, which means no function can save the returned value from main. then why should we take its return type as we can not use that any where! i do agree to jhill123 that in C we write int main instead of void main, it is used for exception handling.
| Is This Answer Correct ? | 4 Yes | 2 No |
Answer / jhil123
It is possible if we declare main() function return value
as void. This is because the default return value of main
function in C is int and if one declares it as void it
results in mismatch in declaration and so cannot be
declared as void.
| Is This Answer Correct ? | 6 Yes | 7 No |
what is difference between input parameter and output parameter.
what are the activities you enjoy most and How do you see these Developing in the Future with Reference to in your work life and in your personal life
what is session state?
Hello...has anyone interviewed with Information Management Services(IMS)located in Silver Spring MD??If yes,what can you share about the programming test and the analytical test?
0 Answers Information Management Services,
How to display questions one by one in jsp and I wants to store the answers in my database?
1.group by clause explain along with an example
can we convert .class file to dll file
Outline the two important features of a terminating recursion. Any ideas?
if there are n nodes in a binary tree, how many null pointers are there?
10.Define filters,binary to hexadecimal,hexadecimal to decimal?
Is strus threadsafe or not?
When we use Windows authentication mode