void printc(char val);
void prints(short val);
void printi(int val);

struct sample {
  char c;
  short s;
  int i;
};

int main()
{
  struct sample s, s2, s3;

  printi(sizeof(struct sample));
  printi(sizeof(s));

  s.c = 1;
  s.s = 2;
  s.i = 3;

  printc(s.c);
  prints(s.s);
  printi(s.i);

  s2.c = 10;
  s2.s = 20;
  s2.i = 30;

  printc(s2.c);
  prints(s2.s);
  printi(s2.i);

  s3.c = 100;
  s3.s = 200;
  s3.i = 300;

  printc(s3.c);
  prints(s3.s);
  printi(s3.i);

  s3 = s2 = s;

  printc(s2.c);
  prints(s2.s);
  printi(s2.i);

  printc(s3.c);
  prints(s3.s);
  printi(s3.i);

  return 0;
}
