Integer promotions in C will downgrade `long int`? -
from c standard
6.3.1.1
if int can represent values of original type (as restricted width, bit-field), value converted int; otherwise, converted unsigned int. these called integer promotions.
so means if utilize long int
in look downgraded unsigned int
?
the bit quoted restricted text above it:
the next may used in look wherever int or unsigned int may used:
an object or look integer type integer conversion rank less rank of int , unsigned int. a bit-field of type _bool, int, signed int,or unsigned int.if int can represent values of original type, value converted int; otherwise, converted unsigned int. these called integer promotions. other types unchanged integer promotions.
in other words, long int
doesn't promoted int
or unsigned int
.
c
No comments:
Post a Comment