Of int, char, float, and bool, which is smallest?

后端 未结 10 1291
傲寒
傲寒 2021-02-02 09:51

The following is from a \"fill-in at home\" programming test that is part of the application process for an MSc in game development at a UK university:

C+

10条回答
  •  傲寒
    傲寒 (楼主)
    2021-02-02 10:17

    The typical size of a bool is one byte. does not means it always is one byte. The question either refers to a realization that have not one-byte-sized bool or implies that only one variable has a smallest size.

提交回复
热议问题