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 |
why we use new keyword for object
what are the missinschema properties and should we pass primary key in select command
what is oops?
How to display questions one by one in jsp and I wants to store the answers in my database?
what is the meaning of without standing arrears?
What is the language used for Artificial Intelligence?
what is client server & server? What r types of Joins? explsin it! which types of indexex in sql server? what is triggers?
diffrence between oracle apps , .NET , SAP
Describe the difference between Interface-oriented, Object-oriented and Aspect-oriented programming
can we extend a class having only one parameterised constructor.Suggest the process to do it.
1. Consider the following code in our example assembly language: ; an example bit of assembly code ROOT: W FATHER FATHER: W SON1 W SON2 SON1: W NIL W NIL ; ---------------------- SON2: W GRANDSON W NIL GRANDSON: W NIL W NIL NIL = 0 Assemble this code carefully following the two pass model, and show the symbol table at the point marked by the dashed line during each pass.
What is the effect of the OPTIONS statement ERRORS=1?
3 Answers QSG, Quintiles, SAS,