Similar Posts

Subscribe
Notify of
2 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Gehilfling
1 year ago

One has nothing to do with the other. Binary is a way you can write numbers and “long” is a data type that indicates how large the value range is.

In this way you can write

long varBinary = 0b010101; 
long varHex = 0x15;
long varDec = 21;

… and all three have the same value.

Rlohdaen
1 year ago

For beginners in “C” highly recommended:
https://en.cppreference.com/w/c