Atlassian interview question

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

Interview Answer

Anonymous

Jun 17, 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.