Thread: Find out how many bytes does an integer contain in windows...

  1. #1
    Registered User Nutshell's Avatar
    Join Date
    Jan 2002
    Posts
    1,020

    Find out how many bytes does an integer contain in windows...

    Hi,

    How can i find out if an integer of an operating system is 2-byte, 4-byte or any other? Take windows as an example. Or will it be much different for another os ?

    thnx

  2. #2
    Unregistered
    Guest
    printf("%d", sizeof(int));

  3. #3
    Unregistered
    Guest
    sizeof, limits.h, or compiler defines. Borland for example defines __WIN32__ if the 32 compiler is used.

    etuli

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to find open windows ?
    By Desolation in forum Windows Programming
    Replies: 6
    Last Post: 04-07-2009, 02:03 PM
  2. Replies: 9
    Last Post: 03-30-2009, 04:09 AM
  3. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 10:36 AM
  4. Help with homework please
    By vleonte in forum C Programming
    Replies: 20
    Last Post: 10-13-2003, 11:16 AM
  5. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM