i have a question that.
is it not possible that main do not return any value, and the returning value of main is void, why returning value of main should always be int,
when we write
void main()
{
}
mostly people here on DANIWEB ask to write int before the main, i.e
int main()
{
return 0;
}
is it not a right way to write void before main. if not then please tell me the reason? that why returning value of main should not be void...
as in reference you can see in the post : http://www.daniweb.com/forums/thread11802.html
that Narue has written "
void main()
main does not, and never has, had a return type of void. The return type of main is int, and anything else is wrong."