Why is the condition in this code true?
true
int main ( ) { if (\"\") cout << \"hello\"; // executes! return 0; }
Because "" decays to a char const* and all non-null pointers evaluate to true if or when converted to a boolean.
""
char const*