t5saisilishan t5saisilishan
  • 03-02-2017
  • Computers and Technology
contestada

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 a upper-case letter.

Respuesta :

rsmith6559
rsmith6559 rsmith6559
  • 04-02-2017
#include <ctype.h>

int result;

result = ( toupper( x ) == x ) ? 1 : 0;
Answer Link

Otras preguntas

43.586 rounded to the nearest hundredth
How do you write 8.59 in word form
g5-h3 if g=2 and h=7 solve expression
AngleDFG and angleJKL are complementary angles. M angleDFG =x+5, and m angleJKL=x-9. Find the measure of each angle
(3x-4)∧2=8 how do i solve this
Round 47125 to the nearest ten, nearest hundred, nearest thousand, and to the nearest ten yhousand
If five notebooks cost $5.25, how much will three notebooks cost?
How many Jews did Adolf Hitler killed
Evaluate 14.3 + 8.2 x 30
What is 25.2<1.5y+1.2