#define _crt_secure_no_warnings
#include<stdio.h>
#define max 100//define定义的标识符常量
#define str "iqoo"
int main()
{
const int b= 10;//const 修饰的变量无法修改,常变量,本质是变量但不能被修改——9_19
printf("%d\n", b);
printf("%d\n", max);
int a = max;
printf("%d\n", a);
printf("%s", str);
enum sex//枚举常量
{
yyu=12,
uiio=9,
ewd=3
};
printf("%d", yyu);
return 0;
}
2023_9_19常量
于 2023-09-19 23:38:17 首次发布