摘要: c-->字符串 \0(数字)字符 字符串在结尾的位置隐藏 的一个\0的字符 \0是字符串的结束标志 #include <stdio.h> int main(){ char arr1[] = "abc"; char arr2[] = { 'a', 'b', 'c' }; char arr3[] = { 阅读全文
posted @ 2022-01-04 14:05 programmer-lite 阅读(111) 评论(0) 推荐(0) 编辑
摘要: c-->常量 1.字面常量 #include <stdio.h> int main(){ 123;//字面常量 "string";//字面常量 printf("hello word!"); } 2.const 修饰符修饰的常变量 被修饰的变量叫常变量仍然是变量,具有常属性(不可改变的属性) #inc 阅读全文
posted @ 2022-01-04 10:44 programmer-lite 阅读(49) 评论(0) 推荐(0) 编辑