|
From: Oliver F. <ol...@gm...> - 2001-04-09 07:32:44
|
afaik, there is no guarantee for the implementation of int's K&R says: sizeof(short) <= sizeof(int) <= sizeof(long) > -----Original Message----- > From: Javier González [SMTP:xav...@ho...] > Sent: Saturday, April 07, 2001 5:58 PM > To: Lloyd Dupont; Mingw list > Subject: Re: [Mingw-users] sizeof long > > > i discover, with surprise that sizeof(long) = 4 > > is it normal ? i always believe it is 8. > > sizeof(char) = 1 byte > sizeof(short int) = 2 bytes > sizeof(int) (16 bit compilers) = 2 bytes > sizeof(int) (32 bit compilers) = 4 bytes > sizeof(long int) = 4 bytes > > the sizeof longs have been always 4 bytes :) > > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options at: > http://lists.sourceforge.net/lists/listinfo/mingw-users -- **************************************************** Oliver Fuchs E-Mail: ol...@gm... PGP 5.5.3i User To get the key, send a mail with Get PGP-Key in subject **************************************************** GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net |