Louis I. answered 03/15/19
Computer Science Instructor/Tutor: Real World and Academia Experienced
Hi, Zackary - I believe this answer applies to C/C++, Java and the bourne shell - there is NO support for binary formatting. There is support for hex and octal formatting however.
For example, I typed the following at my shell prompt:
$ x=256
$ printf "%d %x %o\n" $x $x $x
256 100 400
So we're able to format as decimal, octal and hex ... there is no binary formatting character.
If you need something like that, you'll have to develop your own custom function or macro ...
shouldn't be that difficult.
Good luck!
-- Lou