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

Carole earns $2.50 for each gadget she completes. What was her gross pay if she completed 145 gadgets last week?
the most serious problem with aggression
Compared with gases, liquids: A. have stronger intermolecular attractions. B. have more space between their particles. C. are much less dense. D. are more easil
Given the equation 7(x + 2) = 2x − 1, solve for the variable. Explain each step and justify your process. Jeff solved a similar equation below. Is Jeff's soluti
Dan is a software salesman. His base salary is $1700, and he makes an additional $120 for every copy of History is Fun he sells.Let P represent his total pay (i
kameela says that a good choice of wine yo pair with cheese is a Zinfandel annette says that a better choice to pair with cheese is Pinot Noir.
What are the 3 major factors that contribute to Africa's lack of economic and human development?
Which European nation supported the Monroe Doctrine?
In a relationship with two variables, when one variable becomes larger by a given factor and the other becomes smaller by the same factor, the variables are sai
How does the organization of the US government reflect the ideas of Enlightenment philosopher Baron de Montesquieu?