このコードをコンパイルすると、「不完全な型へのポインターを逆参照しています」というコンパイル エラーが発生します。最後の print ステートメントでエラーが発生し、その前に (*temp) を指定しようとしました。b のアドレスへの num
void main()
{
struct {
int xx;
char *y;
int * num;
struct x *next;
}x;
struct x* temp;
int b = 10;
temp = ((struct x *)malloc(sizeof(x)));
(*temp).num = &b;
x.next = temp ;
printf(" %d\n",temp->num, x.next->num);
}