Is if ( c ) the same as if ( c == 0 ) in C++?
if ( c )
if ( c == 0 )
No, if (c) is the same as if (c != 0). And if (!c) is the same as if (c == 0).
if (c)
if (c != 0)
if (!c)
if (c == 0)
2.1m questions
2.1m answers
60 comments
57.0k users