C语言sizeof运算符 C语言运算符优先级 C语言求模运算实例 C语言sizeof运算符 // sizeof.c -- uses sizeof operator // uses C99 %z modifier -- try %u or %lu if you lack %zd #include <stdio.h> int main(void) { int n = 0; size_t intsize; intsize = sizeof (int); printf("n = %d, n has %zd bytes; all ints have %zd bytes.\n", n, sizeof n, intsize ); return 0; } C语言运算符优先级 C语言求模运算实例