Name
signed specifier — Signed integer type specifier
Synopsis
simple-type-specifier := signed
The signed
keyword can be
used alone to mean signed
int
or combined with other type specifiers
to force the type to be signed. The int
, short
, and long
types are implicitly signed, so it is
most often used with signed
char
to implement a signed integral
value whose range is the smallest that the compiler allows.
A signed integer can be represented using two’s complement, ones’ complement, or signed magnitude.
See Also
char
, int
, long
, short
, type, unsigned
, Chapter 2
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.