[求助]short 字节数,为什么指针会是4?
#include <stdio.h>
void main()
{
short a;
short *b;
printf("%d\n%d\n" , sizeof(a),sizeof(b));
}
输出
2
4
为啥后面指针占4个字节哈?
#include <stdio.h>
void main()
{
short a;
short *b;
printf("%d\n%d\n" , sizeof(a),sizeof(b));
}
输出
2
4
为啥后面指针占4个字节哈?