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

This is a discussion on Find out how many bytes does an integer contain in windows... within the C Programming forums, part of the General Programming Boards category; Hi, How can i find out if an integer of an operating system is 2-byte, 4-byte or any other? Take ...

  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, 03:03 PM
  2. Replies: 9
    Last Post: 03-30-2009, 05:09 AM
  3. HUGE fps jump
    By DavidP in forum Game Programming
    Replies: 23
    Last Post: 07-01-2004, 11:36 AM
  4. Help with homework please
    By vleonte in forum C Programming
    Replies: 20
    Last Post: 10-13-2003, 12:16 PM
  5. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 12:14 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21