Microsoft interview question

Reverse a string in C

Interview Answer

Anonymous

Nov 5, 2016

get a pointer at the beginning and a pointer at the end. Increment forward/backward until they meet, swapping at each point.