Discussion :: Operators
-
Which of the following statements are correct about the following code snippet?
int a = 10; int b = 20; bool c; c = !(a > b);
- There is no error in the code snippet.
- An error will be reported since ! can work only with an int.
- A value 1 will be assigned to c.
- A value True will be assigned to c.
- A value False will be assigned to c.
Answer : Option D
Explanation :
No answer description available for this question.
Be The First To Comment