1.字面常量
30;3.14;'w'
2.const修饰的常变量
const int a=10; 在C语言中,const修饰的a,本质是变量,但是不能被直接修改,有常量的属性。
3.define定义的常量
define max 100
4.枚举常量
enum color
{ RED BIUE GREEN};//定义内存空间
int main ()
1.字面常量
30;3.14;'w'
2.const修饰的常变量
const int a=10; 在C语言中,const修饰的a,本质是变量,但是不能被直接修改,有常量的属性。
3.define定义的常量
4.枚举常量
enum color
{ RED BIUE GREEN};//定义内存空间
int main ()