what happens if we declare main(.. as below in c language?
static void main()
{
.
.
}
>what happens if we declare main(.. as below in c language?
>
[quoted text clipped - 3 lines]
>.
>}
I don't know about C, but in C++, it makes the program ill-formed. VC 7.1
seems to ignore the "static", not to mention the void return type, which is
also illegal. So, this seems to be a case of:
Patient: Doc, it doesn't hurt when I do this.
Doc: Well, don't do it anyway!

Signature
Doug Harrison
Microsoft MVP - Visual C++