您的位置:首页 > 其它

第二天 好晚了

2020-09-10 23:10 218 查看

int main()
{
const int num = 4;//const 常属性,使某一个值不改变,const修饰的常变量。
printf("%d\n",num);//num 是变量,但是有常属性,所以叫做常变量。
num=8;
printf("%d\n",num);
return 0;
const最重要的 常变量

#define max 10//define定义的标识符常量
int main()
{
int arr[max]={0};
printf("%d\n",max);
return 0;
坚持住呀

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: