Code which tacks on an "s" when a described quantity is not exactly 1:
#include <stdio.h>
void display_rabbit_count(int the_count)
{
printf(">>>%d rabbit%s<<<\n",
the_count,
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wstring-plus-int"
"s"+(the_count==1)...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.