C++ Syntax Question: Download Questions PDF
What is conditions when using boolean operators?
![Basic C++ Syntax Interview Answer Basic C++ Syntax Interview Question](https://globalguideline.com/public/images/interview/4.png)
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? |