Warum funktioniert die Zuweisung von zusammengesetzten Literalen nicht ohne Typumwandlung

Ich habe eine Frage zu Literalen in C.

int a;
//a is an integer that is assigned an integer literal 414
a = 414;

float b;
//b is a float that is assigned a float literal of 3.14
b = 3.14;

struct point {
    int x,y;
};

struct point b;
//{5,6} is a compound literal that is assigned to a struture.
b = {5,6}; //doesn't work.

b = (struct point){5,6}; //works.

Das scheint ohne einen Tippfehler nicht zu funktionieren? Was ist der Grund dafür?

Antworten auf die Frage(1)

Ihre Antwort auf die Frage