Skip to content

Char type one's complement? #8

@marcobergamin

Description

@marcobergamin

Hello Federico,

In the document 02.Basic_Concepts_I.pdf, on slide 18/100, you have written that char is a one's complement type with a range from -127 to 127, and I believe this is incorrect. The range could be either the same as signed char or unsigned char, depending on the platform. For example, the range with x86 processors is -128 to 127 (example here: https://godbolt.org/z/G9MYbhGfd). On ARM processors, it is from 0 to 255.

Best regards,
Marco

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions