// // main.c // tareaStruct // // Created by Fernando Ramirez on 17/11/14. // Copyright (c) 2014 Fernando Ramirez. All rights reserved. // #include #include #include struct publisher { char nombre[30]; int costo; }; struct juego { char nombre[30]; int anho; struct publisher pub; }juegoUno; int main(int argc, const char * argv[]) { char aux = printf("Ingrese un nombre"); scanf("%30s",(strncpy(juegoUno.pub.nombre))); juegoUno.pub.costo = 20; printf("%s\n",juegoUno.pub.nombre); printf("%i",juegoUno.pub.costo); }