Advertisement
Guest User

Untitled

a guest
Jul 27th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <conio.h>
  3.  
  4. typedef struct{
  5. int numero;
  6. float volatil;
  7. char nombre[10];
  8. } registro;
  9.  
  10. main()
  11. {
  12.  
  13. registro nuevo;
  14.  
  15. nuevo.numero = 123;
  16. nuevo.volatil = 123.32;
  17. nuevo.nombre[10] = "hola";
  18. printf("valor: %d", nuevo.numero);
  19. printf("valor: %f", nuevo.volatil);
  20. printf("%s", nuevo.nombre);
  21. getch();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement