I am trying to figure out what you are doing. I am guessing you want another struct called pVarVals that has an element that is an array of the VariableValue with the size of MAXVARIABLES?
If this is right then you need to give the array element a variable name. So I think your code needs to be:
But again I am not sure what you are trying to do.
struct VariableValue pVarVals[MAXVARIABLES];
Or you can nest the structs: