anyaimartinez623 anyaimartinez623
  • 19-08-2019
  • Mathematics
contestada

Assume that x is a char variable 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 :

ExieFansler ExieFansler
  • 02-09-2019

Answer:

bool b = isupper(x);

Step-by-step explanation:

I have written the expression for a char variable x.The isupper(x) will return true if the character x is upper case and false if the character x is lower case.

I have stored the returned value to a bool variable b .So the value of variable b will be true only when the x is in uppercase and false when b is lower case.

Answer Link

Otras preguntas

What was the impact of U.S involvement in Panamá
Predict and explain the long term effect on the environment of obtaining and using limestone
complete this sentence. Average speed is worked out from dividing _________ by ________
Using a perpetual inventory system, the entry to record the sale of merchandise on account includes a
The half life of a certain substance is about 4 hours. The graph shows the decay of a 50 gram sample of the substance that is measured every hour for 9 hours. W
Which of the following choices falls under the category of basic human rights?
HELP !!!!! Plz explain on #'s 31 ,32 and 33
Find the volume of the solid. When appropriate, use π = 3.14 and round your answer to the nearest hundredth
A restaurant needs to buy three hundred sixty-seven new plates. if each box has three plates in it, how many boxes will they need to buy?
How would you bookmark a web page using a GUI web browser? A. Click on the star or favorites icon. B. Open a new browser window or tab. C. Log in to yo