Groups | Blog | Home
all groups > visual c > september 2004 >

visual c : Size of int



Jochen Kalmbach
9/30/2004 3:40:38 AM
Hi Ioannis,

[quoted text, click to view]

..NET is a platform and no C/C++ language...


--
Greetings
Jochen

My blog about Win32 and .NET
Agoston Bejo
9/30/2004 9:48:33 AM
What does exactly the size of the int datatype depends in C++?
Recenlty I've heard that it depends on the machine's type, i.e. on 16-bit
machines it's 16 bit, on 32-bit machines it's 32 etc.
Is this true? Is this true for _all_ C++ compilers?

Ioannis Vranos
9/30/2004 10:57:17 AM
[quoted text, click to view]

According to the C++ standard, int is at least 16 bits. So in some
systems it may be 16 bit, in others 32, and in others 64 etc.

In .NET it is 32.



--
Ioannis Vranos
9/30/2004 1:57:10 PM
[quoted text, click to view]


And I think that I referred to it as such.

:-)




--
AddThis Social Bookmark Button