#include<stdio.h>
int main(int argc, char* argv[])
{
//const 关键字使变量变为只读变量
const int a = 10;
const double b = 10.f;
const float c = 10.f;
const long d = 1000;
return 0;
}
C语言-const关键字
最新推荐文章于 2024-09-08 23:04:05 发布
#include<stdio.h>
int main(int argc, char* argv[])
{
//const 关键字使变量变为只读变量
const int a = 10;
const double b = 10.f;
const float c = 10.f;
const long d = 1000;
return 0;
}