// sizeof.c -- uses sizeof operator
// uses C99 %z operator -- try %u or %lu if you lack %zd
/*
 * Microsoft Visual C++ 2005 lacks %zd
 * lcc-win32 3.8 does have it
 */
#include <stdio.h>

int main(void)
{
	int n = 0;
	size_t intsize;

	intsize = sizeof(int);
	printf("n = %d has %zd bytes; all ints have %zd bytes.\n",
		n, sizeof(n), intsize);
	return 0;
}