Skip to content

Instantly share code, notes, and snippets.

@jmramirezpro
Last active January 28, 2016 17:47
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 jmramirezpro/381f8fd9ebffc31770a4 to your computer and use it in GitHub Desktop.
Save jmramirezpro/381f8fd9ebffc31770a4 to your computer and use it in GitHub Desktop.
/*
* Ejemplos de lo comentado en el episodio - Programa 19
* Creado el 13 de ene. de 2016
* Author: jmramirez
*/
/* Ejemplo de cómo crear una estructura */
struct miestructura
{
tipo_dato_1 miembro_1;
tipo_dato_2 miembro_1;
...
tipo_dato_3 miembro_N;
};
/* Ejemplo de variable tipo estructura */
struct miestructura variable;
/* Acceso a un miembro de la estructura */
variable.miembro_1;
/* Definición de un Puntero */
tipo_de_dato *variable_puntero;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment