How to avoid changing constant values?

Answers were Sorted based on User's Feedback



How to avoid changing constant values?..

Answer / jack

using const keyword with the variable.....

Is This Answer Correct ?    4 Yes 1 No

How to avoid changing constant values?..

Answer / subrat pattnaik

by "mutable" keyword use

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C++ General Interview Questions

Difference between static global and global?

16 Answers   Microsoft, Symphony, Wipro,


What does scope resolution operator do?

0 Answers  


How much is size of struct having 1 char & 1 integer?

11 Answers   Persistent,


Write about the scope resolution operator?

0 Answers  


What is the rule of three?

0 Answers  






Is c++ pass by reference or value?

0 Answers  


Describe private, protected and public – the differences and give examples.

0 Answers  


How does throwing and catching exceptions differ from using setjmp and longjmp?

1 Answers  


What is rvalue?

0 Answers  


Will this c++ program execute or not?

0 Answers  


What are the vectors in c++?

0 Answers  


Why c++ does not have finally?

0 Answers  


Categories