From: "A.Appleyard" Organization: Materials Science Centre To: djgpp AT delorie DOT com Date: Tue, 18 Jun 1996 09:24:13 GMT Subject: void treated as int (was: Re: Help Beginning) Message-ID: <3457C032CC3@fs2.mt.umist.ac.uk> Leath Muller wrote (Subject: Re: Help Beginning):- > Actually, I was taught this at the end of second year uni...the theory was > something like: When you return to the OS after exiting from your program, > you may send a void as void essentially translates into a numeric zero. As > far as I know, void is undefined, not zero...so there you go, uni lecturers > are sometimes wrong... :) ... I imagine that (in djgpp on a PC) a (void function return value treated as int) == whatever value was left in EAX register when the function finished.