#include <stdio.h>
int i = 0;
int f() {
return ++i;
}
int g() {
i += 2;
return i;
}
int h() {
i += 4;
return i;
}
typedef struct {
int c;
char a;
float b;
} X;
int main(void) {
X foo = {.a = (char)f(), .b = g(), .c = h()};
printf("c = %d\na = %hhu\nb = %f", foo.
c, foo.
a, foo.
b);
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgaSA9IDA7CgppbnQgZigpIHsKCXJldHVybiArK2k7Cn0KCmludCBnKCkgewoJaSArPSAyOwoJcmV0dXJuIGk7Cn0KCmludCBoKCkgewoJaSArPSA0OwoJcmV0dXJuIGk7Cn0KCnR5cGVkZWYgc3RydWN0IHsKCWludCBjOwoJY2hhciBhOwoJZmxvYXQgYjsKfSBYOwoKaW50IG1haW4odm9pZCkgewoJWCBmb28gPSB7LmEgPSAoY2hhcilmKCksIC5iID0gZygpLCAuYyA9IGgoKX07CgkKCXByaW50ZigiYyA9ICVkXG5hID0gJWhodVxuYiA9ICVmIiwgZm9vLmMsIGZvby5hLCBmb28uYik7CgkKCXJldHVybiAwOwp9Cg==