Skip to content

Instantly share code, notes, and snippets.

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