How to access or modify the const variable in c ?
Answer Posted / vijay kumar (mainpuri)
Answer of #6 , output is wrong
correct out is given below :
Value is: 20
Value is: 20
(above output based on turbo c++ IDE)
Hence, const value can't be change.
| Is This Answer Correct ? | 15 Yes | 5 No |
Post New Answer View All Answers
What are the ways to a null pointer can use in c programming language?
Why is main function so important?
Explain the meaning of keyword 'extern' in a function declaration.
Explain what math functions are available for integers? For floating point?
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
Explain what is page thrashing?
Explain the use of 'auto' keyword
To print the pattern 1 2 3 4 5 10 17 18 19 6 15 24 25 20 7 14 23 22 21 8 13 12 11 10 9
the portion of a computer program within which the definition of the variable remains unchanged a) mode b) module c) scope d) none
Can we assign integer value to char in c?
What is string concatenation in c?
Can a local variable be volatile in c?
Explain what is the difference between the expression '++a' and 'a++'?
How can variables be characterized?
Why do we use null pointer?