不同类型变量所占空间

不同类型变量所占空间

win10 VS2013 

x86/bytex64/byte
int 4
float 4
double 8
char 1
short 2
long 4
long long 8
int 4
float 4
double 8
char 1
short 2
long 4
long long 8
int* 4
float* 4
double* 4
char* 4
short* 4
long* 4
long long* 4
int* 8
float* 8
double* 8
char* 8
short* 8
long* 8
long long* 8

gcc 5.4.0

int 4
float 4
double 8
char 1
short 2
long 8
long long 8
int* 8
float* 8
double* 8
char* 8
short* 8
long* 8
long long* 8
    原文作者:SHU能猫
    原文地址: https://blog.csdn.net/qq_33993942/article/details/79945820
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞