Post History
C, 66 59 bytes -7 bytes thanks to Lundin! In-place string reversal f(char*s){s[1]?f(s+1):0;for(char t=*s;s[1];*++s=t)*s=s[1];} Try it online!
Answer
#2: Post edited
## C, 66 bytes- In-place string reversal
- ```c
f(char*s){if(s[1]){f(s+1);while(s[1]){char t=*s;*s=s[1];*++s=t;}}}- ```
[Try it online!](https://tio.run/##RYuxDoMgGIR3n@JvugCmTR0NpXPfoINxMIBKQtHwYzoQnp2qbdpb7r7LnTwNUuajcdIuSsMVgzLTebzlnsix8wxpND3BpmppXL2sKH@NxupvtW0gCIacodgqzsoSReAppWxcgGdnHKEQC1i1r7Gp65bvPOiABOkH@l@a/fr8o9dh8Q4uvEj5rq2d4DF5qw5v)
- ## C, <strike>66</strike> 59 bytes
- *-7 bytes thanks to Lundin!*
- -----
- In-place string reversal
- ```c
- f(char*s){s[1]?f(s+1):0;for(char t=*s;s[1];*++s=t)*s=s[1];}
- ```
- [Try it online!](https://tio.run/##RYu9DoIwFEZ3nuIal/5EAyNWdPUNHAgDKS00Ka3pLRPh2SvWRL/pOzk58jRKmY7GSbsMCq4YB@PP0y1pIqc@MKQrtlV31wR5RS@l0D5kA7FhKD5OMM6xiZRhk3FLxkWYe@MIhbWAfTnAtq47kXlUEQnSL@jfe4W9/GNQcQkOSlFs6aGs9fD0wQ6HNw)
#1: Initial revision
## C, 66 bytes In-place string reversal ```c f(char*s){if(s[1]){f(s+1);while(s[1]){char t=*s;*s=s[1];*++s=t;}}} ``` [Try it online!](https://tio.run/##RYuxDoMgGIR3n@JvugCmTR0NpXPfoINxMIBKQtHwYzoQnp2qbdpb7r7LnTwNUuajcdIuSsMVgzLTebzlnsix8wxpND3BpmppXL2sKH@NxupvtW0gCIacodgqzsoSReAppWxcgGdnHKEQC1i1r7Gp65bvPOiABOkH@l@a/fr8o9dh8Q4uvEj5rq2d4DF5qw5v)