[go: up one dir, main page]

|
|
Log in / Subscribe / Register

There is no 0b prefix in C11

There is no 0b prefix in C11

Posted Sep 30, 2014 7:47 UTC (Tue) by stefanct (guest, #89200)
Parent article: Little things that matter in language design

The standard allows for compiler-defined extensions (in C99 too btw) and gcc supports a 0b binary prefix, but it is not mandatory and '0b' is not even mentioned explicitly in the standard (at least in the last draft).


to post comments

There is no 0b prefix in C11

Posted Sep 30, 2014 14:49 UTC (Tue) by jwakely (subscriber, #60262) [Link]

Indeed. 0b prefixes are standard in C++14 though, and so are literals with digit-separators such as 1'000'000'000 (the other characters that could have been used were even worse).


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds