一、常量基本类型
基本类型定义:必须初始化
比如:int类型
const int x=10;
int const y=100;
const int z;
z=100;
//error
x=3;
//常量不可更改error
二、指针常量与常量指针
https://blog.csdn.net/sandalphon4869/article/details/88758680
基本类型定义:必须初始化
比如:int类型
const int x=10;
int const y=100;
const int z;
z=100;
//error
x=3;
//常量不可更改error
https://blog.csdn.net/sandalphon4869/article/details/88758680