Format specifier for 'long long'

前端 未结 7 754
野性不改
野性不改 2021-02-02 07:05

I declare a variable for a 64 bit counter as :

long long call_count;

What is the format specifier that I should use in print statements?

<
7条回答
  •  滥情空心
    2021-02-02 07:23

    long long t1;             //signed
    unsigned long long t2;    //unsigned
    
    printf("%lld",t1);
    printf("%llu",t2);
    

提交回复
热议问题