特牛网址导航

c++ 类型转换_c++整形类型转换-CSDN博客

网友收藏
算术转换整型提升负责把小的整数类型转换为较大的整数类型。bool、char、sign char、unsigned char、short和unsigned short,如果他们所有可能的值都在int中,那么它们会被提升为int, 否则提升为unsigned int类型。无符号类型的运算对象 1. 如果无符号数类型不小于带符号数, 则带符号数转换为无符号数 2..._c++整形类型转换