Thank you so much, that did the trick :D
Type: Posts; User: Magi
Thank you so much, that did the trick :D
#define max 10 double miles [max] = {240.5, 300.0, 189.6, 310.6, 280.7, 216.9, 199.4, 160.3, 177.4, 192.3};
double gallons [max] = {10.3, 15.6, 9.7, 14, 16.3, 15.7, 14.9, 10.7, 9.3, 9.4};
...
Technically I don't have to use the pointers but the assignment I'm trying to do says to use pointers. Also the increment of the pointers being placed within the for loop header leads to the print...
I removed the '&'s and it still is just printing the calculation from the first location in the array.
Hello all. I am needing to do a mpg calculation using pointers in both the calculations and the print statement. I have the basic code set up but I am not sure how to set up the pointers so they go...