A very, very, very simple C program that prints the sizes of common data types
C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README
types.c

README

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.