Advertisement
Guest User

Untitled

a guest
Sep 20th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. typedef struct studente {
  5.    char nome;
  6.    char cognome;
  7.    int eta;
  8. } stud;
  9.  
  10. //stud diventa un nuovo tipo
  11. //nel main dichiaro stud
  12.  
  13. int main()
  14. {
  15.     stud p1;
  16.  
  17.     p1.nome = 'A';
  18.  
  19.     printf("%c", p1.nome);
  20.  
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement