整数类型可移植名称

#include <stdio.h>
#include <inttypes.h> // supports portable types

int main(void){

    int32_t me32;     // me32 a 32-bit signed variable

    me32 = 12345678;
    printf(First, assume int32_t is int: );
    printf(me32 = %d\n, me32);
    printf(Next, let's not make any assumptions.\n);
    printf(Instead, use a \macro\ from inttypes.h: );
    printf(me32 = % PRId32 \n, me32);

    return 0;
}

相关文章

for遍历数组
。。。
声明一个计数循环
咕咕咕
#include <stdio.h> int main (void) { printf (&quo...