From: "Igor Siemienowicz" To: "Mike Bales" , <,djgpp AT delorie DOT com> Subject: Re: Weird problem Date: Fri, 14 Mar 1997 11:57:36 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Message-Id: <01593664009067@onaustralia.com.au> Hi there, > This may sound stupid because I am new to DJGPP although have been > using Turbo C++ for years. Here is some code: > void main(void) > { > int x; > > // some code here that puts a value into x > > printf("X is %d.\n", x); > } > This is just an example, not the actual code. The number it prints as > variable X is way about the 32767 limit on ints. (something like a > million and a half) Why? Standard integers in DJGPP are 32-bit, not 16-bit as in Turbo C++. Good luck. Igor Siemienowicz igor AT onaustralia DOT com DOT au