1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21  | #include <stdio.h>
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);
}
 |