I have a problem assigning value to a variable that is in a structure.
I think that's the row with the problem:
Is this the rights way to assign string and int? &h->age[c_names] also doesn't work.Code:fscanf(fp, "%s %d\n", h->name[c_names], h->age[c_names]);
Also is r->price++; correct?