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 the difference between CLEAR & RESET and OPEN & CLOSE OPCOEDS(USING RPG/400).wheare we can use this?can any body tell me in real time senario with example please?
what are wrapper classes
I want Ada programming language books. Could anyone post me any link for that?
What is meant by SQL,PL/SQL,SQL PLUS? Is there any differnece between them?
what is the difference between an OS(operating system) and Framework?
What do you mean by an array ? explain with an example
Number of null pointers in any binary tree
What is the language used for Artificial Intelligence?
what are all the validation we need to perform in data stage?
how to write the fallowing code in java? 1 4 9 16 25 36 49 64 81 100
Please forward important interview and basic questions in VB6 on my email id: usneha_16@yahoo.co.in
differenc between visual studio 2005,2008 & 2010?