int x = 5;

(x % 2 != 0) ?
       printf("%d is odd\n", x):
       printf("%d is even\n", x);