We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C-Primer-Plus-Exercises/ch10/exercise12.c
Line 36 in 73e08e4
total
float total
The text was updated successfully, but these errors were encountered:
The same issue happens for subtotal in the same function and in print_monthly_averages function.
subtotal
print_monthly_averages
Sorry, something went wrong.
Yep, you gonna be right.
C-Primer-Plus-Exercises/ch10/exercise12.c Line 36 in 73e08e4 for (int year = 0, total = 0; year < years; year++) Here you declare new total variable which is now integer and shadows the float total declaration.
No branches or pull requests
C-Primer-Plus-Exercises/ch10/exercise12.c
Line 36 in 73e08e4
Here you declare new
total
variable which is now integer and shadows thefloat total
declaration.The text was updated successfully, but these errors were encountered: