Can I assume the size of long int is always 4 bytes?

前端 未结 10 844
闹比i
闹比i 2020-12-07 18:26

Is it always true that long int (which as far as I understand is a synonym for long) is 4 bytes?

Can I rely on that? If no

10条回答
  •  不知归路
    2020-12-07 19:03

    No, neither the C standard nor POSIX guarantee this and in fact most Unix-like 64-bit platforms have a 64 bit (8 byte) long.

提交回复
热议问题