C++ Syntax Question:
Download Job Interview Questions and Answers 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)
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 Question | Next Question |
What is Else If Syntax? | What is The syntax for a for loop? |