1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#include <stdlib.h> #include <stdio.h> struct point { int x, y; }; struct point mkpoint2(void) { struct point p = { 1, 2 }; return p; } struct point mkpoint1(void) { return mkpoint2(); } main() { struct point p = mkpoint1(); printf("%d,%d\n", p.x, p.y); exit(0); }