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

Which of the kingdoms has the smallest number of known species
you measure or observe two events to occur at the same time one nearby and one further away. Which one did you actually see first?
What is biogeography and what does it provide?
How did scientists discover the common structure of cells?
How do scientists use seismic waves to determine the interior structure of Earth?
which seismic wave moves through earth at the fastest speed?
Natalie earns $2.50 for each cd she sells and $3.50 for each dvd she sells.  Natalie sold 45 dvds last year.  She earned a total of $780 last year selling cds a
which factor made the most difference in how agriculture affected the economies of the colonies?
Which of the following statements is true concerning LUCA? (1) LUCA was a cell. (2) All life on Earth evolved from LUCA. (3) LUCA probably existed probably arou
Find the value of x.  Round to nearest hundredth if necessary.