Mail Archives: djgpp/1997/03/13/20:11:15
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 -