[ create a new paste ] login | about

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

C++, pasted on Aug 25:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//#include <stdio.h>
#include <cstdio>

typedef struct _POINT {
  long x;
  long y;
} POINT;

POINT f(POINT p) {
  return p;
}

int main() {
  POINT p;
  p = f(POINT());
  printf("%ld, %ld\n", p.x, p.y);
  return 0;
}
/* end */


Output:
1
0, 0


Create a new paste based on this one


Comments: