the following do not work when compiling using gcc
char b = 00000010b;
changing it to
char b = 0b00000010;
still don't work I get instead
invalid suffix "b" on integer constant
Sometime it is trivial to just use a binary representation of constant rather
than an hexadecimal or octal representation.
Is it in purpose that such a feature was not implemented with gcc?
Please let me know.
Sincerely,
William Tambe
--
Summary: There is not way to specify a binary constant
Product: gcc
Version: new-ra
Status: UNCONFIRMED
Severity: enhancement
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ftwilliam at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31476