-
-
Save parzibyte/79c86b8111f32841f859d3f57f49ec05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void invertirCadena(char cadena[]) | |
{ | |
int longitud = strlen(cadena); | |
int i; | |
for (i = 0; i < strlen(cadena) / 2; i++) | |
{ | |
char temporal = cadena[i]; | |
cadena[i] = cadena[longitud - i - 1]; | |
cadena[longitud - i - 1] = temporal; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment