下面这个小程序 编译时提示结构体初始化有错误.可是怎么就错了呢?#include <stdio.h>
#define uchar unsigned char
typedef struct
{
uchar a;
uchar b;
}_ATEST;
typedef struct
{
uchar c;
uchar d;
}_BTEST;
typedef struct
{
_ATEST x;
_BTEST y;
}_TTEST;
_ATEST Test_a=
{
1,
2,
};
_BTEST Test_b=
{
3,
4,
};
_TTEST Test=
{
Test_a,
Test_b,
};
int main(void)
{
printf("%d, %d",Test.x.a,Test.y.d);
return 0;
}
|