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

How did Puritan values of the seventeenth century influence Americans of the nineteenth century? A. Americans embraced the Puritan idea of religious toleratio
Two cards are drawn from a single deck of 52 cards one after the other. If the first card is not replaced, find the probability of selecting a King on the first
Twenty-five percent of what number is 10? 40 24 48 2.5
Which city within the same region has the highest population? St. Petersburg Moscow Minsk Kiev
is 0.21 greater than a half
A substance that enters into a chemical reaction is called a(n) _____. enzyme reactant catalyst product
which measurement is greatest? 6 kilometers, 60 meters,600 centimeters, 6000 millimeters
Which European country gained control of the Suez Canal, even though it did not finance or participate in its construction? A. Netherlands B. Belgium C. Germany
What is terracotta warriors texture and colour ?
The Pope excommunicated Fidel Castro because he was a _____ and a(n) _____. Communist; racist fascist; Muslim Communist; atheist Protestant; socialist