#include <stdio.h>
#define type(x) _Generic((x), \
int: "int", unsigned int: "unsigned int", \
float: "float", double: "double", \
long double: "long double", char *: "char *", \
void *: "void *", int *: "int *", \
default: "unknown")
int main(var1, var2, var3, var4, var5) {
printf("%s %s %s %s %s\n", type
(var1
), type
(var2
), type
(var3
), type
(var4
), type
(var5
)); printf("%d %d %d %d %d", var1
, var2
, var3
, var4
, var5
); return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CiNkZWZpbmUgdHlwZSh4KSBfR2VuZXJpYygoeCksICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBcCiAgICAgICAgICBpbnQ6ICJpbnQiLCAgICAgICAgICAgICAgICAgICAgIHVuc2lnbmVkIGludDogInVuc2lnbmVkIGludCIsICAgICAgICAgICBcCiAgICAgICAgZmxvYXQ6ICJmbG9hdCIsICAgICAgICAgICAgICAgICAgICAgICAgIGRvdWJsZTogImRvdWJsZSIsICAgICAgICAgICAgICAgICBcCiAgbG9uZyBkb3VibGU6ICJsb25nIGRvdWJsZSIsICAgICAgICAgICAgICAgICAgIGNoYXIgKjogImNoYXIgKiIsICAgICAgICAgICAgICAgICBcCiAgICAgICB2b2lkICo6ICJ2b2lkICoiLCAgICAgICAgICAgICAgICAgICAgICAgICBpbnQgKjogImludCAqIiwgICAgICAgICAgICAgICAgICBcCiAgICAgIGRlZmF1bHQ6ICJ1bmtub3duIikKaW50IG1haW4odmFyMSwgdmFyMiwgdmFyMywgdmFyNCwgdmFyNSkgewoJcHJpbnRmKCIlcyAlcyAlcyAlcyAlc1xuIiwgdHlwZSh2YXIxKSwgdHlwZSh2YXIyKSwgdHlwZSh2YXIzKSwgdHlwZSh2YXI0KSwgdHlwZSh2YXI1KSk7CglwcmludGYoIiVkICVkICVkICVkICVkIiwgdmFyMSwgdmFyMiwgdmFyMywgdmFyNCwgdmFyNSk7CglyZXR1cm4gMDsKfQ==