sizeof long int=4; //这与int一样
sizeof shor int=2;
sizeof double=8;
sizeof char=1;
sizeof *p_int=4;
sizeof *p_char=4;
sizeof *p_double=4;
char b[]="我是谁";
char c[]="who am i";
sizeof b=7; //一个汉字占字节数 2
sizeof c=9; //一个英文字母占字节数 1
sizeof long int=4; //这与int一样
sizeof shor int=2;
sizeof double=8;
sizeof char=1;
sizeof *p_int=4;
sizeof *p_char=4;
sizeof *p_double=4;
char b[]="我是谁";
char c[]="who am i";
sizeof b=7; //一个汉字占字节数 2
sizeof c=9; //一个英文字母占字节数 1
本文标题:C 基本数据类型内存
本文链接:https://www.haomeiwen.com/subject/adglqttx.html
网友评论