C++ Syntax Question:

What is conditions when using boolean operators?

Basic C++ Syntax Interview Question
Basic C++ Syntax Interview Question

Answer:

A. !( 1 || 0 ) ANSWER: 0
B. !( 1 || 1 && 0 ) ANSWER: 0 (AND is evaluated before OR)
C. !( ( 1 || 0 ) && 0 ) ANSWER: 1 (Parenthesis are useful)


Previous QuestionNext Question
What is Else If Syntax?What is The syntax for a for loop?