Created
August 6, 2019 05:54
-
-
Save parzibyte/75867eb7c3e923a99fe7a9ba7a090fd8 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
/* | |
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