Garmin Interview Question

Write a function (in C) to reverse any given word.

Interview Answer

Anonymous

Oct 12, 2023

Determine length of the string and enter a for loop that will iterate one less than that length. In each iteration, swap the current letter with a letter equidistant from the end as you are to the beginning of the word.