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

后端 未结 10 1301
傲寒
傲寒 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:04

    The language doesn't specify any relationships between these type sizes that guarantee a correct answer to that question as posed. They could all be 32-bit types, for example.

提交回复
热议问题