[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: can main() return other than int/void ?



M K Saravanan forced the electrons to say:
> Can main() return other than int/void?

main() cannot return void also - main has to return int.

The only allowed prototypes for main are:

int main (void);
int main (int argc, char *argv[]);

and equivalents of these.

Binand