Skip to content

Binary constants supported, starting from C2x. #63

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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