[TynesideLUG] Getting type sizes

Ian Bruntlett ian.bruntlett at gmail.com
Wed Jan 27 20:17:33 UTC 2021


On x86_64 architecture, that program outputs this...

$ ./list-sizeofs
CHAR_BIT = 8
Size of bool is 1
Size of char is 1
Size of int is 4
Size of long is 8
Size of size_t is 8
Size of float is 4
Size of double is 8
Size of widget is 24
Size of widget1 is 8


-- 
-- ACCU - Professionalism in programming - http://www.accu.org
-- My writing - https://sites.google.com/site/ianbruntlett/
-- Free Software page -
https://sites.google.com/site/ianbruntlett/home/free-software


More information about the Tyneside mailing list