Pergunta de entrevista da empresa Garmin

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

Resposta da entrevista

Sigiloso

12 de out. de 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.