Home Forums C Programming calculate and display mpg in C program Re: Re: calculate and display mpg in C program

#3495
GWILouisaxwzkla
Participant

The average is calculated in the line:

the compiler sets up a hidden temporary variable to hold the result of ( miles/gallons ) and then sends this result to the printf () function to print it……..