[ create a new paste ] login | about

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

C++, pasted on Sep 11:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <cstdio>

struct foo
{
  int x;
  //union
  //{
    int y;
    int z;
  //};
};

int main(int argc, char *argv[])
{
  foo bar = { 1 };
  printf ("%d %d %d", bar.x, bar.y, bar.z );
  return 0;
}


Output:
1
1 0 0


Create a new paste based on this one


Comments: