.TH long "" "" "C Keyword"
.PC "Data type"
.PP
A
.B long
is a numeric data type.
The ANSI standard states that
.B long
is the largest integer data type.
It cannot be smaller than an
.BR int ,
although an
.B int
and a
.B long
can be the same size.
.PP
\*(CO defines an
.B long
to be four bytes long;
that is,
.B "sizeof long"
equals 4
(four \fBchar\fRs, or 31 data bits plus a sign bit).
A
.B long
can hold any value from
\-2,147,483,647 to 2,147,483,647.
.PP
A
.B long
normally is sign extended when cast to a larger data type;
an
.BR "unsigned long" ,
however, will be zero extended.
.SH "See Also"
.Xr "C keywords," c_keyword
.Xr "data formats," data_form
.Xr "int" int
.br
\*(AS, \(sc6.1.2.5
