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 |
Define Form modules, Class modules and Standard modules
write a program on c(or)c++(or)java language i.e if i have 5 numbers like (10,24,3,9,15) i want to display highest number from these numbers
What do you mean by an array ? explain with an example
What is a dialog based program
what do u mean by tagging
Write a program to create a process in UNIX
differenc between visual studio 2005,2008 & 2010?
Artficial language is provided which of the language?
how to data grid use in data bind?
Which tag is used to break a line
what is adodb??y it is used for connection of V.B and access??what is ado?dao?
What is Negative testing?