AMD Interview Question

Reverse words in a char array in place, use C.

Interview Answer

Anonymous

Nov 20, 2016

This can be done by finding individual words in string and reversing characters in each, and then reversing characters in the resulting string. 1) Write generic function to reverse characters in any string, given start and end. 2) Go thought original string, look for space marking end of word and beginning of next, reverse characters 3) Reverse characters in the resulting string