#include <stdio.h>
typedef struct { char * word; int count; } wordType;
int main(void) {
wordType tmp;
wordType a = {.word="hello", .count=5};
wordType b = {.word="world", .count=11};
tmp = a;
a = b;
b = tmp;
printf("A: %s %d\n", a.
word, a.
count); printf("B: %s %d\n", b.
word, b.
count); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+Cgp0eXBlZGVmIHN0cnVjdCB7IGNoYXIgKiB3b3JkOyBpbnQgY291bnQ7IH0gd29yZFR5cGU7CgppbnQgbWFpbih2b2lkKSB7Cgkgd29yZFR5cGUgdG1wOwp3b3JkVHlwZSBhID0gey53b3JkPSJoZWxsbyIsIC5jb3VudD01fTsKd29yZFR5cGUgYiA9IHsud29yZD0id29ybGQiLCAuY291bnQ9MTF9Owp0bXAgPSBhOwphID0gYjsKYiA9IHRtcDsKcHJpbnRmKCJBOiAlcyAlZFxuIiwgYS53b3JkLCBhLmNvdW50KTsKcHJpbnRmKCJCOiAlcyAlZFxuIiwgYi53b3JkLCBiLmNvdW50KTsKCXJldHVybiAwOwp9