请问C51程序中0x0000和0x00的区别和具体含义

那程序中0xa000 和0x800编译出来的肯定要有区别啊

没有区别。
unsigned char temp;
temp = 0x01;
temp = 0x0001;
temp = 0x1001;
编译出来的代码是一样的。8位变量赋值16位数,16位数的高8位被忽略。

unsigned short temp;
temp = 0x01;
temp = 0x0001;
temp = 0x1001;
前面2句是一样的。16位变量赋值8位数,16位变量的高8位置0。
温馨提示:答案为网友推荐,仅供参考