Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A very, very, very simple C program that prints the sizes of common data types
C
Branch: master
Failed to load latest commit information.
.gitignore Initial commit
README added README
types.c Initial commit

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.
Something went wrong with that request. Please try again.