c++整型提升

"A character, a short integer, or an integer bit-field, all either signed or not, or an object of enumeration type, may be used in an expression wherever an integer maybe used. If an int can represent all the values of the original type, then the value is converted to int; otherwise the value is converted to unsigned int. This process is called integral promotion."

c++ pp page54

转换检验表c++ pp page 55

具体见:

https://blog.csdn.net/zhangxiao93/article/details/43989409

posted @ 2021-11-29 17:01  SanFranciscoo  阅读(31)  评论(0编辑  收藏  举报