How to change constant values?

Answer Posted / rajesh

use const_cast<...>

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What language is a dll written in?

547


Why struct is used in c++?

620


Will c++ be replaced?

554


Differentiate between structure and class in c++.

602


How to declare an array of pointers to integer?

582






What is a pointer how and when is it used?

577


What is the importance of mutable keyword?

585


What is near, far and huge pointers? How many bytes are occupied by them?

661


What is the best book for c++ beginners?

578


What is the difference between a "copy constructor" and an "assignment operator" in C++?

622


Define friend function.

570


What is ostream in c++?

572


What is the copy-and-swap idiom?

605


Does c++ cost money?

582


Can a function take variable length arguments, if yes, how?

567