Home  >  Q&A  >  body text

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

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

ringa_leeringa_lee2720 days ago871

reply all(1)I'll reply

  • ringa_lee

    ringa_lee2017-04-17 13:47:07

    It has nothing to do with the operating system or CPU, but with the compiler. The int of turbo c is 2 bytes. You compile the program and run it on Windows 8 (note that only Windows 8 32bit can run 16-bit programs). If you use an Intel Core i7 processor that supports 64-bit, it will still be 2 bytes.

    reply
    0
  • Cancelreply