the-c-programming-language-second-edition-solutions
the-c-programming-language-second-edition-solutions copied to clipboard
Excersise 4-13 broken for even length inputs.
Any input with even length will not properly reverse the middle two characters.
For example, inputting 12
will output 12
, inputting 1234
will output 4231
, inputting 123456
will output 653421
, etc.
Odd length inputs work as intended.