[ create a new paste ] login | about

Link: http://codepad.org/4DUDe1bG    [ raw code | output | fork ]

appunti2 - C, pasted on Apr 30:
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;
}


Output:
1
struttura: 33 55 77


Create a new paste based on this one


Comments: