Home / CSE / Object Oriented Programming Using C++ :: Discussion

Discussion :: Object Oriented Programming Using C++

  1. Assume you want to compare the character stored in the initial variable to the letter a. Which of the following conditions should you use in the if statement? (Be sure the condition will handle a or A.)

  2. A.
    (initial = 'a' or 'A')
    B.
    (initial == 'a' or 'A')
    C.
    (toupper(initial) = 'A')
    D.
    (toupper(initial) == 'A')

    View Answer

    Workspace

    Answer : Option D

    Explanation :

    No answer description available for this question.


Be The First To Comment