Format specifier for 'long long'

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

    According to C99, it should be "%lld" (see, for example,here). If Diab C isn't C99, then you'd have to look at the compiler docs, which I can't seem to find online with a quick Googling.

提交回复
热议问题