Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- typedef struct persona
- {
- char nome[50];
- char cognome[50];
- int eta;
- } t_persona;
- void main()
- {
- //oppure
- t_persona mario;
- strcpy(mario.nome,"Mario");
- strcpy(mario.cognome, "Zazzerone");
- mario.eta=23;
- printf("Nome: %s - Cognome : %s- EtΓ : %d\n",mario.nome, mario.cognome, mario.eta);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement