Domanda di colloquio di Atlassian

Write a program to reverse a string in any language...

Risposta di colloquio

Anonimo

17 giu 2015

I mentioned the strrev function in C, they asked if I knew how strrev works. I didn't know but I guessed: calc strlen, create new string using for loop with chars in reverse order, print string. They asked for alternate method same could be done with pointers.