Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (24 sloc) 397 Bytes
README for types.c
To use this program, simply type
$ gcc types.c
$ ./a.out
Common outputs are:
i386:
Sizeof...
char: 1
short: 2
int: 4
long: 4
long long: 8
float: 4
double: 8
amd64:
Sizeof...
char: 1
short: 2
int: 4
long: 8
long long: 8
float: 4
double: 8
Should compile with every C compiler, originally written for gcc 4.2 on OpenBSD i386, but also runs with gcc 4.6.2 Debian amd64.