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 inprocess and outprocess in vb
what is the pl/sql block size in oracle 10g and 11g?
5. How do you round the addition or subtraction of two numbers in assembler?
What are the main principles of OOP?
I would like to know which institute in hyderabad provides best ms-dot net training along with a project. I want to join immediately. please help
how to fin top two miximum values in sql? not 2nd both max value of 1st and 2nd both have to find out
HOW TO DOWNLOAD ORCUT SITE VIDEOS IN PC WITH THE HELP OF MOZILL'S FIREFOX?
what is runtime exception and compiletime exception ?
What is %Type,%Rowtype?
what is the basic and unique feature of dotnet
what is the difference between an OS(operating system) and Framework?
what is web configuration file