Considerarray is an array of variables of type structure (struct).
When you pass an array of structs as a parameter to a function, you access it with the dot (.) operator:
array[0].structField1
Shouldn't it be accessed with the arrow (->) operator, since we're passing the address of the first element of the array, like:
array[0]->structField1