Does GCC support long long int?

前端 未结 7 2108
南方客
南方客 2020-12-31 07:08

Does GCC support:

long long int

which would be a 64-bit integer?

Also, is long long int part of the standard?

相关标签:
7条回答
  • 2020-12-31 07:42

    On my 32-bit machine,

    int main()
    {
        printf("%d\n", sizeof(long long int));
        return 0;
    }
    

    compiled with gcc prints 8 (8 bytes * 8 bits/byte = 64 bits).

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