Name
short type — Short integer type specifier
Synopsis
simple-type-specifier := short
When used alone or with int
,
the short
type specifier represents
a short integer, whose range is no bigger than a plain int
. It can be combined with unsigned
to denote an unsigned integer whose
range is no bigger than a plain unsigned
. A plain short
is signed by default, but you can use
the signed
specifier to be
explicit.
See Also
int
, long
, signed
, 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.