C++win32、win64、linux32、linux64中各数据类型占字节数

来源:互联网 发布:js倒计时10秒代码 编辑:程序博客网 时间:2024/06/09 20:57


 Legend:

 Standard behavior Standard and a grateful surprise: other compilers/platforms fail Standard but be careful: different from everywhere else Unexpected: probably a compiler bug or missing feature

Numerical type sizes in C (bits)Platforms  \   Typescharshortintsize_tssize_tlonglong longvoid*off_tfloatdoubleWin32, gcc nuwen 7.2816323232326432323264Win32, gcc nuwen 7.2 LFF816323232326432323264Win32, MSVC8163232-326432323264Linux32, gcc816323232326432323264Linux32, gcc LFF816323232326432643264Win64, gcc mingw64816326464326464323264Win64, gcc mingw64 LFF816326464326464643264Win64, MSVC8163264-326464323264Linux64, gcc816326464646464643264Linux64, gcc LFF816326464646464643264

1 0
原创粉丝点击