1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include <stdio.h> struct Elenco { char uno; short due; int tre; }; void f (struct Elenco e) { printf ("struttura: %i %i %i\n", e.uno, e.due, e.tre); } int main (int argc, char *argv[]) { f ((struct Elenco) { 33, 55, 77 }); return 0; }
1
struttura: 33 55 77