>>149
Cだとこうなの?

int val = 2;
char str[32];

if (val == 2) {
str = "に";
}
if (val == 3) {
str = "さん";
}
else {
str = "不明";
}

printf(str);