今天主要学习了4个知识点,首先是常变量,包括字符串常量,标识常量,变量。字符串常量
末尾有一个用来标识字符串结尾的 \0 字符,标识常量#define一般用作代码的替换不进行
任何数据的计算,变量包括数据类型和变量名,定义变量分为初始化和赋值;
第二个部分是类型转换,分为显示类型转换和隐式类型转换,显示只会转换一次
隐式类型转换表达式中一般为低精度转换成高精度。浮点型精度大于整形精度
同种类型所占内存空间越大精度范围越高,无符号精度大于有符号精度;
第三个部分为运算符,分为算数运算符和赋值运算符,i++,++i的区别,赋值运算式中右值
会转换类型为左侧类型;
第四个知识点为字符的输入输出,putchar,getchar,只能引入或打印一个字符且只能打印
字符
the third day
于 2024-01-17 18:58:43 首次发布