Ich bin überrascht, Schnur plus boolean hat ähnliche Wirkung ternären Betrieb pluralize:const Zeichenfolge plus boolean in C
int apple = 2;
printf("apple%s\n", "s" + (apple <= 1));
Wenn apple <= 1
, es Apfel gedruckt wird. Warum funktioniert das?
ah, ich sehe ... danke – Oxdeadbeef