I am very new to C programming so this may be a silly question. I am recieving the following error and don't know why:

error C2109: subscript requires array or pointer type

The code that it is pointing to are these three lines:

tempFahr = fahr[indexOfMinFahr];
fahr[indexOfMinFahr] = fahr[fillFahr];
fahr[fillFahr] = tempFahr;

Any suggestions? Thanks