Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. typedef struct persona
  4. {
  5. char nome[50];
  6. char cognome[50];
  7. int eta;
  8. } t_persona;
  9.  
  10. void main()
  11. {
  12. //oppure
  13. t_persona mario;
  14. strcpy(mario.nome,"Mario");
  15. strcpy(mario.cognome, "Zazzerone");
  16. mario.eta=23;
  17. printf("Nome: %s - Cognome : %s- EtΓ  : %d\n",mario.nome, mario.cognome, mario.eta);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement