Question d’entretien chez Tripadvisor

Write a function that reverses a string

Réponses aux questions d'entretien

Utilisateur anonyme

3 janv. 2012

put letters into a char array, create a new char array of the same size, loop through the first array backwards and insert letters into the new array, return the new array

Utilisateur anonyme

28 févr. 2012

At above Why create a new char array when you can reverse in place?