Oh, looking at the question after days, I thought it was about -1 && 1 :P
Correct @mayur_dp
@Arpon Notice that it is a logical AND operator and not bitwise AND, I'm sure you mistook it for bitwise AND
So it's like ~1 && 1
= -2 && 1
= True ^ True (^ is conjunction, every number other than 0 is True)
= True
= 1 (in C Programming)
Since, in C Programming, logical operators return 1 (for true) or 0 (for false) as a result.