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 set and append?
what is difference between IF-ELSE-ENDIF and IIF.
9.Difference between even and odd signals?explain with the diagram?
Hi can you please help for the following. I have a ASP.Net web page I want to print the whole page how is it possible? I want It in ASP also.Please send me the solutions dipankar.hazari@gmail.com . Thanks in advance.
I am looking for selenium RC online Training in chennai. can any one tell me the best institute
this question is from sas:what is the difference between FILE and INFILE statements? plz explain in brief?
Write a program to calculate the following i want a Java program for this condition 1+4+9+16+….+100 Like this (1^2+2^2) Hint use function pow(a,b)
In loading programs into memory, what is the difference between load-time dynamic linking and run-time dynamic linking?
73. How can you set the status and title for a modal dialog box? a) In the attributes of the corresponding screen. b) Before the corresp. call screen statement. c) In a PBO module of the corresponding screen. d) In the PAI module of the corresponding screen.
why we use new keyword for object
what is diff bet ref variable & instance of class
can anyone please tell me the procedure for the NIC personal interview as i have been selected for the post of scientist/technical assistant B