This operator is a unary operator. It just takes one value and performs one's complement on the number.
For example,
x=~3;It takes the binary representation of the 3,
3 - 0011
x=~3;It takes the binary representation of the 3,
float a=3;It takes the value as 3.000000. You can understand this by referring to the concept of Type casting by clicking here.
x=3+4*5;So, what would be the answer to the above equation. Let us solve the same equation in two different ways.