结构体指针
#include "stdio.h"typedef struct com
{
unsigned char a;
unsigned char b;
unsigned char c;
} fp_com;
int main(void)
{
unsigned char x[3]={1,2,3};
comm cc={1,2};
fp_com *pt;
pt=(fp_com *)&x[1];
pt->a=x;
printf("%d\n",pt->a);
//printf("%d\n",cc.x);
while(1);
}
我输出之后怎么是124
怎样用*pt 使printf输出数组的元素啊
请附加一下原因 非常感谢了