COHERENT manpages

This page displays the COHERENT manpage for short [Data type].

List of available manpages
Index


short -- C Keyword

Data type

short is a  numeric data type.  The ANSI standard  states that it cannot be
longer than an int.

COHERENT defines  a short to be  two bytes long; thus,  sizeof short equals
two chars, or  15 bits plus a sign, and  can hold any value from -32,768 to
32,767.

A short normally is sign extended when cast to a larger data type; however,
an unsigned short will be zero extended when cast.

See Also

C keywords,
data format,
data type,
int,
long
ANSI Standard, §6.1.2.5