Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 6, 2019 05:54
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/75867eb7c3e923a99fe7a9ba7a090fd8 to your computer and use it in GitHub Desktop.
Save parzibyte/75867eb7c3e923a99fe7a9ba7a090fd8 to your computer and use it in GitHub Desktop.
/*
Trabajando con arreglos de cadenas en C
@author parzibyte
*/
#include <stdio.h>
#define MAXIMA_LONGITUD_CADENA 50
int main(){
char arreglo[][MAXIMA_LONGITUD_CADENA] = {"Arsenal", "Bautizo", "Comadreja", "Consulta", "Dinosaurio", "Zapato"};
int longitudDelArreglo = sizeof(arreglo) / sizeof(arreglo[0]);
printf("El arreglo mide: %d", longitudDelArreglo);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment