// 64_bit_test.c // Ivan Novick, Nov-2009 // check to see if this is a 64 bit machine #include int main(int argc, char** argv){ size_t bits = sizeof(void*) * 8; size_t int_size = sizeof(int); size_t long_size = sizeof(long); size_t long_long_size = sizeof(long long); printf("This is a %d bit machine\n", bits); printf("Integer variable sizes are:\n"); printf("\tint %d\n", int_size); printf("\tlong %d\n", long_size); printf("\tlong long %d\n", long_long_size); return 0; }