Thread: unsigned int and unsigned long

  1. #16
    Registered User
    Join Date
    Dec 2011
    Posts
    795
    > (long) has been 4 bytes forever. I don't see this one changing anytime soon.
    The minimum is 4 bytes. My machine represents it as 8, and it's 64 bit.

  2. #17
    Registered User
    Join Date
    Jan 2009
    Posts
    1,485
    Quote Originally Posted by memcpy View Post
    The minimum is 4 bytes. My machine represents it as 8, and it's 64 bit.
    Same here, it's 8 bytes on most 64 bit *nix systems and others using LP64 model. 64-bit - Wikipedia, the free encyclopedia

    For C99 there are stdint.h with type names that has the width specified in the name, uint32_t and so on.
    Last edited by Subsonics; 03-22-2012 at 02:26 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 10-11-2010, 01:53 AM
  2. Converting unsigned long array to unsigned char array
    By delvec28 in forum C Programming
    Replies: 2
    Last Post: 09-07-2009, 08:53 PM
  3. Replies: 8
    Last Post: 03-10-2008, 11:57 AM
  4. unsigned int and unsigned long int
    By -EquinoX- in forum C Programming
    Replies: 43
    Last Post: 03-05-2008, 05:17 PM
  5. Converting an unsigned int to to unsigned long long (64 bit)
    By ninjacookies in forum C Programming
    Replies: 18
    Last Post: 02-11-2005, 12:09 PM