How to solve the error: assignment to expression with array type

You are declaring the fixed size arrays in the struct.

Maybe you want to do this:

struct carinfo_t {

char *brand;
char *model;
int year;
float value;
};

Leave a Comment