can someone please tell me the differences between: main(), int main(), and void main(void). thanks.
can someone please tell me the differences between: main(), int main(), and void main(void). thanks.
The return type is different in the case of void main. void main will cause unspecified behavior because the programs ends up returning a value even if you declare a void return type so it should not be used with the global point of entry 'main'. If you do not specify the return type than the default is ínt.
isn't there something in the faq about that?
i am not sure, but i think i've seen something there...
here u go...
http://www.cprogramming.com/boardfaq.html#main