Like Tree1Likes

unsigned int and unsigned long

This is a discussion on unsigned int and unsigned long within the C Programming forums, part of the General Programming Boards category; > (long) has been 4 bytes forever. I don't see this one changing anytime soon. The minimum is 4 bytes. ...

  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.

Page 2 of 2 FirstFirst 12
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, 04: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, 11:09 AM

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