1 struct Bar { 2 int c; 3 int d; 4 }; 5 6 struct Foo { 7 int a; 8 struct Bar *b; 9 }; 10 GetAFoo()11struct Foo *GetAFoo() { 12 static struct Foo f = { 0, 0 }; 13 return &f; 14 } 15 SumTwoIntegers(int x,int y)16int SumTwoIntegers(int x, int y) { 17 return x + y; 18 } 19 GetSum(struct Foo * f)20int GetSum(struct Foo *f) { 21 return SumTwoIntegers(f->a, f->b->d ? 0 : 1); 22 } 23 main()24int main() { 25 return GetSum(GetAFoo()); 26 } 27