Can I use a binary literal in C or C++? - Stack Overflow To do the converse (i.e. print out a number in binary form), you can use the ... There are no binary (base 2) literals in C nor C++. ... C represent int in base 2.