Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- typedef struct studente {
- char nome;
- char cognome;
- int eta;
- } stud;
- //stud diventa un nuovo tipo
- //nel main dichiaro stud
- int main()
- {
- stud p1;
- p1.nome = 'A';
- printf("%c", p1.nome);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement