“error: assignment to expression with array type error” when I assign a struct field (C)
You are facing issue in because, in the LHS, you’re using an array type, which is not assignable. To elaborate, from C11, chapter §6.5.16 assignment operator shall have a modifiable lvalue as its left operand. and, regarding the modifiable lvalue, from chapter §6.3.2.1 A modifiable lvalue is an lvalue that does not have array type, […] You need to use strcpy() to copy … Read more