CLearn/Chapter_3/3_4_print2.c

16 lines
393 B
C

/* 更多 printf() 的特性 */
#include <stdio.h>
int main(void)
{
unsigned int un = 30000000000;
short end = 200;
long big = 65537;
long long verybig = 12345678908642;
printf("un = %u and not %d\n",un,un);
printf("end = %hd and %d\n",end,end);
printf("big = %ld and not %hd\n",big,big);
printf("verybig= %lld and not %ld\n",verybig,verybig);
return 0;
}