delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/13/20:11:15

From: "Igor Siemienowicz" <igorsiem AT onaustralia DOT com DOT au>
To: "Mike Bales" <rbales1 AT flash DOT net>, <,djgpp AT delorie DOT com>
Subject: Re: Weird problem
Date: Fri, 14 Mar 1997 11:57:36 +1000
MIME-Version: 1.0
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019