Instar wrote:
quote:
#include <stdio.h>
void main()
{
printf("Go lay an egg, you bumbling freak!\n");
}
Assuming this is C, main()
must return an int. If your compiler accepts void as main()'s return type, you've been lucky. Obviously, this means you'd need to add a return statement returning zero.
Sorry for the nitpick. Seen this very error in college level books and it kinda annoys me knowing we are teaching future programmers bad habits.
[This message has been edited by Zanthis (edited 11 February 2001).]