-
-
Save parzibyte/aca4d740a80da1fbdc977e76ece3db0b 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
// Asignar datos | |
p->altura = 1.55; | |
p->edad = 23; | |
// Nota: para asignar una cadena no podemos usar el operador =, debemos copiar | |
// los datos | |
strncpy(p->nombre, "Luis Cabrera Benito", MAXIMA_LONGITUD_CADENA); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment