void printcx(char val);
void printix(int val);

struct sample {
  char c[4];
  int i;
};

int main()
{
  struct sample s;
  int i;
  char *p;

  s.c[0] = 0x12;
  s.c[1] = 0x34;
  s.c[2] = 0x56;
  s.c[3] = 0x78;
  s.i = 0x5a5a5a5a;

  p = (char *)&s;
  for (i = 0; i < 8; i++) {
    printcx(*(p++));
  }

  return 0;
}
