Why is the following code illegal?
typedef struct{ char a[6]; } point; int main() { point p; p.a = \"onetwo\"; }
Does it have any
Note that in order to store the string "onetwo" in your array, it has to be of length [7] and not as written in the question. The extra character is for storing the '\0' terminator.