Boolean Literals in Action : boolean « Data Type « Visual C++ .NET






Boolean Literals in Action

 

#include "stdafx.h"
using namespace System;

void main()
{
    bool isTrue = true;
    bool isFalse = false;

    Console::WriteLine ( isTrue );
    Console::WriteLine ( isFalse );


}

   
  








Related examples in the same category

1.Boolean Fundamental Type in Action
2.Boolean literals are objects too
3.Boolean Literal and casting
4.Boolean Literal and toString