a)Distinguish between (p!=9) and !(p==9).
Answers
Answered by
0
(p != 9), returns true if p is not equal to 9 and visa versa.
!(p = = 9), returns false if p is equal to 9 and visa versa.
Answered by
2
Question:-
- Distinguish between (p!=9) and!(p==9)
Difference:-
p!=9 is used to check whether the value of p is 9 or not.
!(p==9) is used to check whether p is equal to 9 and then the ! operator is used to negate the condition.
Similar questions