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 concept would states’ rights advocates have supported during the 1860 presidential election? the abolition of slavery the idea of popular sovereignty the
Which statement best shows the difference between romantic and realist literature? Romanticism depicts people in love, whereas realism depicts the real nature o
which of the following groups of organs all remove metabolic wastes from the human body?
what number is between 0.01 and 0.1??
This force rubs things away.
Which of the following resulted from codominance? 1)a person with AB blood type 2)a flower with pink petals 3)a rabbit with white fur 4)a mouse with brown fur
The Krebs cycle takes place within the: A. mitochondria B. lysosome C. vacuole D. cytoplasm
Julie's cell phone is 9 centimeters long. How many millimeters long is her cell phone?
What was the greatest influence in the Northwest Ordinance of 1787?
Why did American Indians trade with others? What was the main reason that Europeans traded?