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

前端 未结 10 842
闹比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

    From Usrmisc's Blog:

    The standard leaves it completely up to the compiler, which also means the same compiler can make it depend on options and target architecture.

    So you can't.

    Incidentally even long int could be the same as long.

提交回复
热议问题