Question d’entretien chez Intel Corporation

reverse a string

Réponse à la question d'entretien

Utilisateur anonyme

6 avr. 2015

int end = lstrlen(tszString)-1; int start = 0; while( start < end ) { tszString[start] ^= tszString[end]; tszString[end] ^= tszString[start]; tszString[start] ^= tszString[end]; ++start; --end; }