Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Type struct
#include <stdio.h> typedef struct { int dia; int mes; } tipoFecha; typedef struct { char nombre[20]; tipoFecha fechaNac; } cumpleAmigos; int main() { cumpleAmigos amiga = {"Silvana",{16,6}}; printf("Cumpleaños de %s es %d/%d\n",amiga.nombre,amiga.fechaNac.dia,amiga .fechaNac.mes); cumpleAmigos *ptr; ptr = &amiga; printf("Cumpleaños de %s es %d/%d\n",ptr->nombre,ptr->fechaNac.dia,ptr->fechaNac.mes); return 0; }
run
|
edit
|
history
|
help
0
Spring 2017 Project 2 v.05
Project 5 v.03
1/30
PRÁCTICA DE QUICKSORT
20171103_Digitos
Class Friday 1/20 Inauguration Day
6 ejercicio trabajo semanal 4
Character testing
Check EOF Value
2017_1117_TARTAGLIA