Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / September 2004

Tip: Looking for answers? Try searching our database.

Size of int

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Agoston Bejo - 30 Sep 2004 08:48 GMT
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 - 30 Sep 2004 08:57 GMT
> 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?

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.

Signature

Ioannis Vranos

Jochen Kalmbach - 30 Sep 2004 11:40 GMT
Hi Ioannis,

> In .NET it is 32.

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

Signature

Greetings
 Jochen

  My blog about Win32 and .NET
  http://blog.kalmbachnet.de/

Ioannis Vranos - 30 Sep 2004 11:57 GMT
> .NET is a platform and no C/C++ language...

And I think that I referred to it as such.

:-)

Signature

Ioannis Vranos


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.