变量只读
如何在C中使变量只读?
const int a = 10; //Is it readonly variable?
如果不是,只读变量在 C 中是什么样子的?请举个例子。
How to make a variable readonly in C?
const int a = 10; //Is it readonly variable?
If not, How readonly variable looks like in C? Please give an example.
如何在C中使变量只读?
const int a = 10; //Is it readonly variable?
如果不是,只读变量在 C 中是什么样子的?请举个例子。
How to make a variable readonly in C?
const int a = 10; //Is it readonly variable?
If not, How readonly variable looks like in C? Please give an example.
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
是的,
const
允许在定义时进行一次初始化。Yes it is,
const
allow a single initialisation at the definition.