Skip to main content
5 votes
Accepted

I keep getting "expected EOF" when I use check50

When the code is run with the test data that check50 uses, 4111111111111113, it prints INVALID twice. check50 was expecting the program to end, not to print the second INVALID. The problem is obvious ...
Cliff B's user avatar
  • 69.1k
1 vote
Accepted

Receiving EOF when I execute check50 (Readability)

I found the mistake was in a space between %i\n and ", in the line printf("Grade %i\n ", (int) round(index)); The problem was solved when rewriting to: printf("Grade %i\n", (...
Martin Birkeland's user avatar
1 vote
Accepted

Can somebody please help me to better understand constant variables, and eof, and how they relate to pset3?

Constant variables, with const int MAX as an example, the const means that MAX will not be modified. It is constant so it must not, and will not be changed. Some reasons for using a const is; the ...
kluvin's user avatar
  • 1,223

Only top scored, non community-wiki answers of a minimum length are eligible