Define and use bool value : Bool « Data Type « C++






Define and use bool value

Define and use bool value
#include <iostream>
using namespace std;

int main()
{
  bool outcome;

  outcome = false;

  if(outcome)
    cout << "true";
  else 
    cout << "false";

  return 0;
}


           
       








Related examples in the same category

1.Demonstrate bool values. Demonstrate bool values.