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

前端 未结 10 838
闹比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:12

    No, you can't assume that since the size of the “long” data type varies from compiler to compiler.
    Check out this article for more details.

提交回复
热议问题