Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 30, 2020 01:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e49ff4c911468fa6f4481fe13d30bb76 to your computer and use it in GitHub Desktop.
Save parzibyte/e49ff4c911468fa6f4481fe13d30bb76 to your computer and use it in GitHub Desktop.
char palabras[][MAXIMA_LONGITUD_CADENA] = {
"Maria",
"Luis",
"Bojack",
"Leon",
"Maggie",
"Link",
"Mario",
"Claire",
"Zanahoria",
"Baroness Von Bon Bon",
};
int longitud = sizeof(palabras)/sizeof(palabras[0]);
// Imprimimos el arreglo antes de ordenarlo, solo para ilustrar
printf("---Imprimiendo arreglo sin ordenar---\n");
int i;
for (i = 0; i < longitud; i++)
{
printf("%s\n", palabras[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment