Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- typedef struct{
- int numero;
- float volatil;
- char nombre[10];
- } registro;
- main()
- {
- registro nuevo;
- nuevo.numero = 123;
- nuevo.volatil = 123.32;
- nuevo.nombre[10] = "hola";
- printf("valor: %d", nuevo.numero);
- printf("valor: %f", nuevo.volatil);
- printf("%s", nuevo.nombre);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement