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

Do we have to use initialization list in spite of the assignment in constructors?

550


Which bitwise operator is used to check whether a particular bit is on or off?

579


What does it mean to declare a member variable as static?

598


In which header file does one find isalpha() a) conio.h b) stdio.h c) ctype.h

661


What is the use of turbo c++?

543






What are the important differences between c++ and java?

588


What do you mean by enumerated data type?

562


What are manipulators in c++ with example?

565


Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.

634


What is buffer and example?

513


What is the latest version on c++?

671


What is the use of lambda in c++?

561


Can we use struct in c++?

576


What is flush programming?

557


What are signs of manipulation?

575