dargaCode/StringReverse

Reverse a given string using loops

★ 0Forks 0CGitHub ↗Compare
cgit

README

String Reverse

Language: C

Reverse a given string using loops.

Short but not easy haha. I thought I’d save myself some time by hardcoding the string at first, and change it to be dynamic later.

After a couple of very frustrating hours, I learned that hardcoded strings live in the executable, and aren’t rewritable =\

[edit: turns out they're only hardcoded when defined as pointers, not arrays]

Contributors

dargaCode

Issues