#include <iostream>
using namespace std;
int main()
{
    if (!(cout << "geeks"))
       cout <<" geeks ";
    else
       cout << "forgeeks ";
    return 0;
}
Why is cout << "geeks"; inside the if condition executed? I know that the if statement is false. I expected "forgeeks " only.
 
     
     
    