[vox-tech] Size of long int?

Brian Lavender brian at brie.com
Fri Jan 8 23:00:36 PST 2010


It seems that long int on 32 bit is 4 bytes on my 32 bit machines with
gcc and on my 64 bit machine is 8 bytes.

There is no standard on long int, is there? 

#include <stdio.h>

int main()
{
   printf("Size of int is %ld\n",sizeof(long int));
   return 0;
}


brian
-- 
Brian Lavender
http://www.brie.com/brian/

"There are two ways of constructing a software design. One way is to make
it so simple that there are obviously no deficiencies. And the other
way is to make it so complicated that there are no obvious deficiencies."

Professor C. A. R. Hoare
The 1980 Turing award lecture
					   


More information about the vox-tech mailing list