I've also seen int main(void) I believe that's just for arguments sake though, so the OS won't pass in anything on the stack, though I'm not really sure.
Thanks, Tyler Littlefield Web: tysdomain.com email: [email protected] My programs don't have bugs, they're called randomly added features. ----- Original Message ----- From: [email protected] To: [email protected] Sent: Tuesday, April 07, 2009 7:23 AM Subject: Re: [c-prog] C language The main function returns an integer to the operating system indicating the success or failure of the program. You should code int main( ). I've actually seen void main(void) in C textbooks, and yes it will work, but technically it is incorrect to do so, because the operating system is expecting an integer to be returned from your C program. **************A Good Credit Score is 700 or Above. See yours in just 2 easy steps! (http://pr.atwola.com/promoclk/100126575x1221421323x1201417385/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID %3D62%26bcd%3DAprilfooterNO62) [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]
