跳到文章

本 日 公 休

Hi, this is Mendax. I’m documenting my learning notes in this blog.

基本数据类型所占字节数

32位编译器:
char      short      int      long      float      double      指针
   1           2          4         4           4           8              4

64位编译器:
char      short      int      long      float      double      指针
   1           2          4         8           4            8             8
 
 
所以辨别编译器是几位的可以通过sizeof(long)来判断
posted @ 2020-03-09 14:51  叁壹壹  阅读(337)  评论(0)    收藏  举报