C语言入门语法

一、数据类型 常量 1、通过预处理声明常量 #include <stdio.h> #define PRICE 100 int main() { printf("价格:%d\n",PRICE); return 0; } 2、通过 const 关键字声明常量 #include <stdio.h> const int NUM=10; int main() { printf("
相关文章
相关标签/搜索