Ask Question
5 June, 05:57

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.

+4
Answers (1)
  1. 5 June, 06:21
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “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 ...” in 📗 Mathematics if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers