From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: 2 quick questions Date: Sat, 15 Aug 1998 17:18:57 -0700 Organization: Alcyone Systems Lines: 24 Message-ID: <35D62571.B8B0981@alcyone.com> References: <35D4F001 DOT 4A3E2B2D AT xyz DOT net> NNTP-Posting-Host: charmaine.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Bjorn Hansen wrote: > 1] what does the exit code tell you? Whether or not the program exited successfully. Zero indicates success, and nonzero indicates failure. > 2] why does the compiler have a warning message if you don't use a > caste? when you do something like this Because a warning message indicates you're doing something that's probably wrong unless you really know what you're doing. (The code you posted, for instance, is Very Bad.) Using an explicit cast is a way to indicate to the compiler (and other people reading your code) that "Yes, I know this is suspicious, but I really mean to do it." -- Erik Max Francis / email max AT alcyone DOT com / whois mf303 / icq 16063900 Alcyone Systems / irc maxxon (efnet) / finger max AT sade DOT alcyone DOT com San Jose, CA / languages En, Eo / web http://www.alcyone.com/max/ USA / icbm 37 20 07 N 121 53 38 W / &tSftDotIotE \ / Freedom is a road seldom travelled by the multitudes / Public Enemy