Format specifier for 'long long'

前端 未结 7 732
野性不改
野性不改 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:21

    Microsoft and Watcom use %I64d (capital eye), others use %lld (lowercase ell ell).

提交回复
热议问题