Variable readonly
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.
It is readonly. But if you will use pointers' magic not accurately you can at random edit it
Yes it is, const
allow a single initialisation at the definition.
精彩评论