Closed itopaloglu83 closed 1 year ago
Are you sure?
When attempting to print the 81th character, the if statement succeeds. This then results in printing a newline. The character finally gets printed as the first character of the new line.
EDIT: Nevermind, arrays are zero-indexed, so yes I think you are right. Thank you for noticing this! I will merge soon.
RIP this fix.
Off by one bug. Printing a new line when
col > NUM_COLS
prints 81 characters on a single line.