C++ Syntax Question:
Download Questions PDF

What is conditions when using boolean operators?

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)

Download Basic C++ Syntax Interview Questions And Answers PDF

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