Format specifier for 'long long'

前端 未结 7 734
野性不改
野性不改 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.

    0 讨论(0)
提交回复
热议问题