The designation 0b in front of the number is just an indicator that the following is represented in binary form. So, if you see something like 1001, you know that number is βone thousand one,β not nine, written in binary format.
In general, the prefix 0b usually means binary, the prefix 0 usually means octal, and the prefix 0x usually means hexadecimal.
Hope this helps!
source share