Is int in C Always 32-bit?

后端 未结 8 2016
故里飘歌
故里飘歌 2020-12-05 05:17

This is related to following question,

How to Declare a 32-bit Integer in C

Several people mentioned int is always 32-bit on most platforms. I am curious if

8条回答
  •  佛祖请我去吃肉
    2020-12-05 05:46

    TI are still selling OMAP boards with the C55x DSPs on them, primarily used for video decoding. I believe the supplied compiler for this has a 16 bit int. It is hardly dinosaur (the Nokia 770 was released in 2005), although you can get 32 bit DSPs.

    Most code you write, you can safely assume it won't ever be run on a DSP. But perhaps not all.

提交回复
热议问题