I am using C++ Builder XE4.
I am trying to use a binary number such as 0b1
in my code.
Following is the code I tried:
void __fastcall TForm1::Button1Click(TObject *Sender)
{
int num = 0b11;
}
The above causes a compiler error:
Unit1.cpp(19): E2141 Declaration syntax error
Does C++Builder support binary numeration like this?
I confirmed that 0x11
works in C++Builder.
I also confirmed that 0b11
can be used in IDEOne using C++: