#include struct Dummy { int a, b; }; struct Dummy foo(void) { struct Dummy d = { 12, 34 }; return d; } int main(void) { struct Dummy d = foo(); printf("d.a = %d, d.b = %d\n", d.a, d.b); }