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 compound yields H + ions as the only positive ions in an aqueous solution? (1) KOH (3) CH3OH (2) NaOH (4) CH3COOH
What is freedom of religion?
How old do citizens have to be to vote for President?
In what month do we vote for President?
the product of two integers is 50. one integer is twice the other. find the integers.
What group of people was taken to America and sold as slaves?
When lithium reacts with bromine to form the compound LiBr each lithium atom (1) gains one electron and becomes a negatively charged ion (2) gains three electro
Why do some states have more Representatives than other states?
What is the political party of the President now?
Who does a U.S. Senator represent?