50.7k views
5 votes
Assume that x is a char variable that has been declared and already given a value . write an expression whose value is true if and only if x is not a upper-case letter.

User Elegent
by
7.8k points

1 Answer

2 votes
#include <ctype.h>

( toupper( x ) != x ) ? 1 : 0;
User Vuliad
by
7.4k points