21 lines
370 B
Plaintext
21 lines
370 B
Plaintext
int :: printf(char* format);
|
|
|
|
union fruit {
|
|
char cherry,
|
|
int apple,
|
|
int orange,
|
|
long banana
|
|
};
|
|
|
|
union fruit basket;
|
|
|
|
int :: main() {
|
|
basket.apple = 55;
|
|
printf("1 %d b\n", basket.cherry);
|
|
printf("2 %d a\n", basket.orange);
|
|
basket.orange = 100;
|
|
printf("3 %d c\n", basket.banana);
|
|
printf("4 %d d\n", basket.apple);
|
|
|
|
return (0);
|
|
} |