Examveda
Examveda

What is the result of ~5 ?

A. 5

B. -5

C. 10

D. -6

Answer: Option B

Solution(By Examveda Team)

The ~ operator performs bitwise NOT, inverting the bits of the number.

This Question Belongs to Python Program >> Bitwise And Boolean

Join The Discussion

Related Questions on Bitwise and Boolean