Consider the following four expressions: (a < 10) & (a > 10) not(a == 10) (a < 10) | (a >= 11) (a < 10) | (a > 10) Assume that a is an integer type variable. Three of these expressions are equivalent to each other, meaning that they will produce the same logical TRUE or FALSE result regardless of the value of a.  One out of four will not produce the same result as the other three. Which one is it?

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter7: User-defined Simple Data Types, Namespaces, And The String Type
Section: Chapter Questions
Problem 2SA
icon
Related questions
Question
  1. Consider the following four expressions:

    (a < 10) & (a > 10)

    not(a == 10)

    (a < 10) | (a >= 11)

    (a < 10) | (a > 10)

    Assume that a is an integer type variable. Three of these expressions are equivalent to each other, meaning that they will produce the same logical TRUE or FALSE result regardless of the value of a.  One out of four will not produce the same result as the other three. Which one is it?

     

       

    (a < 10) | (a > 10)

       

    (a < 10) & (a > 10)

       

    (a < 10) | (a >= 11)

       

    not(a == 10)

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning