结构指针的问题请帮忙#define uchar unsigned char
#define uint unsigned int
typedef idata struct yyy
{
uchar a;
uchar b;
uint ab;
/*
union sa
{
uchar high;
uchar low;
uint word;
} ss;
*/
} dd;
dd *test;
dd *best;
void main(void)
{
uint address;
address = test;
test-> a = 0x55; //1
test-> b = 0xaa; //2
test-> ab= 0x1111; //3
best-> b = test-> a; //4
while(1);
}
哪位大侠给看看,其中3、4正确,1、2得不到相要的数,用的是keil进行软仿真。谢谢