Mega Code Archive

 
Categories / Visual C++ .NET / Data Type
 

Boolean Literal and casting

#include "stdafx.h" #using <mscorlib.dll> using namespace System; Int32 main(void) {     Boolean a = 18757;   // will give a warning but set to true     Boolean b = 0;       // false     Boolean c = true;         Boolean d = false;       Console::WriteLine( a );     Console::WriteLine( b );     Console::WriteLine( c );     Console::WriteLine( d );     return 0; }