I am trying to store a negative value in a variable and using bitwise not operator output is showing in positive, so how it actually works internally please explain. Here is the