Computer Science, asked by rajputpoonam667, 7 months ago


a)Distinguish between (p!=9) and !(p==9).​

Answers

Answered by Oreki
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 anindyaadhikari13
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