char *f1(){return "!";}

char *f2(){return "?";}



...

printf("Спасибо %s", choose() : f1() ? f(2));

...