0

when would i ever/when would it be a good idea, to ever explicitly use
__int8 nSmall; // Declares 8-bit integer
__int16 nMedium; // Declares 16-bit integer
__int32 nLarge; // Declares 32-bit integer
__int64 nHuge; // Declares 64-bit integer


over regular int?? in your program

4
Contributors
12
Replies
13
Views
6 Years
Discussion Span
Last Post by gerard4143
Featured Replies
  • 1
    WaltP 2,905   6 Years Ago

    [QUOTE=GuitarComet;]When you want your program to be portable[/QUOTE] Excuse me? Don't you mean [I][B]not[/B][/I] portable? You wouldn't use them. IMO, they are unnecessary. Read More

  • 1
    WaltP 2,905   6 Years Ago

    [QUOTE=GuitarComet;]Microsoft says what I wrote above: [URL="http://msdn.microsoft.com/en-us/library/29dh1w7z%28v=vs.80%29.aspx"]http://msdn.microsoft.com/en-us/library/29dh1w7z%28v=vs.80%29.aspx[/URL][/QUOTE] Since M$ is only concerned with M$, what they say is perfectly valid -- for the M$ world. But they are not the only game in town, and these forums cater to [I]all[/I] games, not just the M$ world. Hence, [B]portable[/B] has a … Read More

1

When you want your program to be portable

Excuse me? Don't you mean not portable?

You wouldn't use them. IMO, they are unnecessary.

0

if i compiled a program on a 64bit PC would it not work on a 32bit/16 bit machine then? or would it work?

0

so....would a program compiled on a 64bit pc not work for a 32 bit pc?

That really depends since you can create 32 bit PC programs with 64 bit PC compilers.

0

so what determines wether it only works for a 64 bit system??

If memory addresses are 64 bit then it'll only work on a 64 bit CPU.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.