C语言 - const | static
摘要:const 1 - 它的作用增强了程序的安全性,限定一个变量不能被修改 const int a = 10; a = 99;// 编译报错:a 不允许被修改 const int arrayDemo[] = {1,2,3}; arrayDemo[0] = 10;// 编译报错 2 - 修饰指针 1 in
阅读全文
posted @ 2021-09-24 01:33
posted @ 2021-09-24 01:33
posted @ 2021-09-22 20:33