Quote:
|
Originally Posted by DaWei
Again, my incipient blindness lead me to miss the semicolon and see that it was a declaration, rather than an invocation.
|
Actually, you are quite clearly seeing, the topic name says: "(void) before function call".
Quote:
|
Originally Posted by DaWei
The type of the return is, to me, essential, even though it isn't required in C. To use it in an invocation is another matter, entirely. If you don't specify the return type in 'C', then it's presumed to be an int, a condition which may not suit your purposes.
|
This is the reason for not being able to have just a main function without explicitly stating a return type in C++, right? :o