C语言中一共有两种定义变量的方法:
1. 宏定义:再#include下面紧跟#define
例如:
#include <stdio.h>
#define SUN_FLOWER 100;
#define IPHONE_14 6200;
2.CONST INT定义
例如:
#include <stdio.h>
int main()
{
const int IPHONE_14 = 6200; //定义变量的时候,变量名称一般都是大写。
return 0;
}
标签:nineth,定义,int,30,6200,include,2022.12,define From: https://www.cnblogs.com/ningzj/p/17015693.html