Heim  >  Fragen und Antworten  >  Hauptteil

macos - 关于in、Linux、mac等系统的系统整型字节数

in、Linux、mac等系统是不是所有的系统整型字节数都是4?字符类型都是两个字节?如果有例外,麻烦举例说明

ringa_leeringa_lee2720 Tage vor877

Antworte allen(1)Ich werde antworten

  • ringa_lee

    ringa_lee2017-04-17 13:47:07

    和操作系统、CPU无关,和编译器有关,turbo c的int就是2字节的。你编译了程序拿到windows 8(注意只有windows 8 32bit可以运行16位程序)跑,用Intel Core i7支持64位的处理器,还是2个字节。

    Antwort
    0
  • StornierenAntwort