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


Please Help Members By Posting Answers For Below Questions

How does free() know explain how much memory to release?

611


What are the different categories of functions in c?

639


What is a void pointer? When is a void pointer used?

614


Which is best book for data structures in c?

591


What is the purpose of void pointer?

590






What is the function of this pointer?

666


What is memory leak in c?

629


Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon

5460


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2299


Do you know pointer in c?

579


Is it possible to execute code even after the program exits the main() function?

803


What is scope and lifetime of a variable in c?

570


using for loop sum 2 number of any 4 digit number in c language

1728


Explain the properties of union. What is the size of a union variable

712


Explain how can I read and write comma-delimited text?

646