You have a few errors in your code.
When you are passing the tempF and pressure array to computePressure I don't think you wanted to pass the address of the gth element. It looks like your code is expecting the address of the start of the array. It should look something like this:
computePressure (tempF, pressure, moles, volume, a[g], b[g]);
You have the same problem in the call to printGasInfo where you have passed the address of the gth element of pressure. It should be change to something similar to this:
printGasInfo (a[g], b[g], pressure);
The other problem I see is in the calculation of tempK in computePressure. The ratio 5/9 will be calculated using integers and will return 0 so tempK will always result in a value of 273 which is not what you intended. You need to change that to use float/double constants. Also the correct conversion to Kelvin should use an offset of 273.15. The tempK calculation should look like this:
double tempK = (5.0/9.0) * (tempF[t]-32) + 273.15;
The output I get with these changes are:
Pressure (atm) using Waals' Ideal Gas Law
L2atm/mol2 L/mol 0F 20F 40F 60F 80F 100F
0.0341 0.0237 44.4423 46.3819 48.3215 50.2611 52.2007 54.1403
0.2440 0.0266 43.8758 45.8273 47.7788 49.7303 51.6817 53.6332
1.3600 0.0318 39.9100 41.8831 43.8563 45.8294 47.8026 49.7757
5.4600 0.0305 23.3844 25.3521 27.3198 29.2875 31.2551 33.2228
20.4000 0.1383 -22.8971 -20.3429 -17.7888 -15.2347 -12.6805 -10.1264