CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Threaded View

  1. #1
    Join Date
    Jan 2007
    Posts
    491

    What determines the size of int?

    The size of int changes. Sometimes it takes 16 bits in the memory (2 bytes), while in other cases it might take 32 bites (4 bytes).

    I claim the compiler determines the size, but some people told me it's up to the architecture (i.e., the processor).

    Am I right here?
    Last edited by Talikag; July 2nd, 2008 at 09:00 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured