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

前端 未结 10 811
闹比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 18:51

    The compiler determines the size based on the type of hardware and OS.

    So, assumptions should not be made regarding the size.

提交回复
热议问题