Skip to content

Binary constants supported, starting from C2x. #63

@Ashvith10

Description

@Ashvith10

In Raw input and output#Press Ctrl-Q to quit:

In C, you generally specify bitmasks using hexadecimal, since C doesn’t have binary literals, and hexadecimal is more concise and readable once you get used to it.

However, starting from C23, binary constants are supported. Given that the newest standard is used (-std=c2x) while building, binary constants can be used by adding the constant specifier 0b, followed by the number in binary.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions