Standard C++ Library Reference ISO/IEC (VERSION3)

promotes its type to one of these. If all of the values representable in the original type are also
representable as type int, then the promoted type is int. Otherwise, the promoted type is
unsigned int. Thus, for signed char, short, and any signed bitfield type, the promoted type is int.
For each of the remaining integer types (char, unsigned char, unsigned short, any plain bitfield
type, or any unsigned bitfield type), the effect of these rules is to favor promoting to int
wherever possible, but to promote to unsigned int if necessary to preserve the original value in
all possible cases.
An rvalue expression is an expression whose value can be determined only when the program
executes. The term also applies to expressions which need not be determined until program
execution.
You use the sizeof operator, as in the expression sizeof X to determine the size in bytes of
an object whose type is the type of X. The translator uses the expression you write for X only to
determine a type; it is not evaluated.
A void expression has type void.
See also the Table of Contents and the Index.
Copyright © 1989-2001 by P.J. Plauger and Jim Brodie. All rights reserved.