The condition num != 65 cannot be replaced by
Pick an option to check yourself, or open the answer below.
Show answer & explanation
Correct answer: D. !(num − 65)
Explanation
num − 65 is non-zero (true) exactly when num ≠ 65, so A, B and C are equivalent. !(num − 65) is true only when num == 65.More Programming Languages and Computer Graphics questions
- Pointers cannot be used to
- Which mechanism in XML allows organisations to specify globally unique names as element tags in documents?
- The following transformation (with general entries in all four rows) is called[x'] [a1 b1 c1 d1] [x] [y'] = [a2 b2 c2 d2] [y] [z'] [a3 b3 c…
- A top-down approach to programming calls for: Statement I: Working from the general to the specific. Statement II: Postponing the minor dec…
- Which of the following is NOT a logical error?
- Which statement is false?