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 |
How to print No.of.rows affected after updation using ADO.Net
What is nocopy in plsql?
What is the difference between DECISION COVERAGE(DC) and MODIFIED CONDITION/DECISION COVERAGE(MCDC)?
what is woransient key word? how it is used in java
when will triggars the at new event in abap and web dybn pro?
how to hide prompts
Is anyone has done the ASP.NET MVC4 workshop course(2 days) from Peers Technologies. Let me know. I need to talk before joining ASP.NET MVC4 training at peers, Hyderabad.
Is class is a abstract datatype in java?
what is web configuration file
What is the entry point function of a DLL?
Hello Experts, What is the difference between move and move corresponding exactly? please post me asap
what is the filters in biztakk server? where it can use?