#include <stdio.h> #define BYTES 8 int main(void) { printf("Get Data Type size...\n"); printf("int %d\n", sizeof(int) * BYTES); printf("float %d\n", sizeof(float) * BYTES); printf("double %d\n", sizeof(double) * BYTES); printf("char %d\n", sizeof(char) * BYTES); printf("unsigned long %d\n", sizeof(unsigned long) * BYTES); #if 0 printf(" %d\n", sizeof() * BYTES); #endif printf("short %d\n", sizeof(short) * BYTES); printf("long %d\n", sizeof(long) * BYTES); return 0; } |
以前月曆上的美夢,現在實現了
2 週前