Are there any platforms where pointers to different types have different sizes?

前端 未结 7 1181
刺人心
刺人心 2020-11-22 12:40

The C standard allows pointers to different types to have different sizes, e.g. sizeof(char*) != sizeof(int*) is permitted. It does, however, require that if a

7条回答
  •  佛祖请我去吃肉
    2020-11-22 12:48

    One could easily imagine a Harvard architecture machine having different sizes for function pointers and all other pointers. Don't know of an example...

提交回复
热议问题