Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/declarar.c Secret

Created Oct 30, 2020
Embed
What would you like to do?
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