const修饰
摘要:const修饰是否能修改,判断性质简便方法:从由往左读,遇到p就替换为“p is a”,遇到*就替换为“point to”,其余不变。 如 const int p; p is a int const. p是一个int型常量
阅读全文
posted @
2022-05-19 22:00
蜀山菜鸟
阅读(18)
推荐(0) 编辑
C语言常见易错点
摘要:1. 占位符概念 关于%.*f的格式化输出:(占位符的概念) int a = 4; float m = 3.14159; printf(“%.*f\n”, a, m); A. 3.1416 B. 3.14159 C. 4.000000 D. 运行错误还是什么的,不太记得了 解析:https://zh
阅读全文
posted @
2022-05-19 20:33
蜀山菜鸟
阅读(53)
推荐(0) 编辑