Question d’entretien chez Deutsche Bank

Write a C++ function to reverse a string

Réponse à la question d'entretien

Utilisateur anonyme

29 juin 2021

string reverse(string a){ string s = ""; for(int i=a.length(); i>=0; i--) s+=a[i]; s+='\0'; return s; }