Boolean
#include <stdafx.h>
#include <iostream>
using namespace std;
/*Boolean variables only have two possible values: true (1) and false (0). */
int main()
{
bool a = true, b = false;
if (a && b)
{
cout<<"Inside if" << endl;
}
else
{
cout<<"Inside else" << endl;
}
return 0;
}
Output:
Inside else