the-c-programming-language-second-edition-solutions icon indicating copy to clipboard operation
the-c-programming-language-second-edition-solutions copied to clipboard

Excersise 4-13 broken for even length inputs.

Open ikmckenz opened this issue 6 years ago • 0 comments

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.

ikmckenz avatar Sep 05 '17 06:09 ikmckenz