How can I solve this problem?
error: expected an expression
for (int i = 0; i < n; i++){
^
Function that I try to implement:
void initRacks(struct rack_t *racks, int n) {
for (int i = 0; i < n; i++){
racks[i].widthA = i + 2.5;
racks[i].widthB = i + 1.5;
}
}