Boolean literals are objects too : boolean « Data Type « Visual C++ .NET






Boolean literals are objects too

 

#include "stdafx.h"
using namespace System;

void main()
{
    Console::WriteLine ( true.ToString () );
    Console::WriteLine ( false.ToString () );

}

   
  








Related examples in the same category

1.Boolean Fundamental Type in Action
2.Boolean Literals in Action
3.Boolean Literal and casting
4.Boolean Literal and toString