What is “!!” in C? [duplicate]
! is negation. So !! is negation of negation. What is important is the fact that the result will be an int. !!x if x == 0 is !!0, that is !1, that is 0. !!x if x != 0 is !!(!0), that is !!1, that is !0, that is 1. !! is used commonly … Read more