Invalid type argument of -> C structs

a is of type Album* which means that a[i] is of type Album (it is the ith element in the array of Album object pointed to by a).

The left operand of -> must be a pointer; the . operator is used if it is not a pointer.

Leave a Comment