KEIL中编译的单片机 遇到一条坎,求哥哥们扶一把!
废话少说,上着9句代码
#define uchar unsigned char
void main()
{
uchar i=0;
uchar Rev[4];
Rev[0]=0x00;
Rev[1]=0x00;
Rev[2]=0x09;
Rev[3]=0xff;
i=Rev[0]+ Rev[1]+ Rev[2]+ Rev[3];//0x08
if(i==Rev[0]+ Rev[1]+ Rev[2]+ Rev[3])i=0xaa;
while(1);
}
请问最后i是0xaa还是0x08?
为什么?
我知道答案,我不知道为什么。谢谢!
|