You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wrote a version of the Caesar code without the ctype library (no isdigit). It iterates over the characters in the argument and checks if they are digits using this condition:
if (argv[1][i] <= '0' || argv[1][i] >= '9')
This is wrong: it rejects 0 and 9 too. But check50 doesn't complain. Suggestion: write test cases using 0 or 9 as key.
The text was updated successfully, but these errors were encountered:
I wrote a version of the Caesar code without the
ctype
library (noisdigit
). It iterates over the characters in the argument and checks if they are digits using this condition:This is wrong: it rejects 0 and 9 too. But
check50
doesn't complain. Suggestion: write test cases using 0 or 9 as key.The text was updated successfully, but these errors were encountered: