3-byte int and 5-byte long?

前端 未结 4 1329
独厮守ぢ
独厮守ぢ 2020-11-29 08:39

Does each of C and C++ standards allow sizeof of numeric types not to be a power of two?

The following constraints are known:

4条回答
  •  有刺的猬
    2020-11-29 09:00

    Definitely there are platforms with 24-bit ints. This is still used today for certain embedded applications. You could check Wikipedia for further information: http://en.wikipedia.org/wiki/24-bit

提交回复
热议问题