Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

C++ Language/Type/Conversion/PromotingSmallIntegers

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

Often, there are no machine-language mathematical operators for integers smaller than int. Consequently, the compilation result of bTermA + bTermB where bTermA and bTermB are both unsigned char will "promote" both of these two terms into int before doing the addition. Additional information about integer promotion (includes interactive examples)