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

what is data encapsulation in C++?

0 Answers  


structure that describe a hotel with name, address,rooms and number of rooms

2 Answers  


What is helper in c++?

0 Answers  


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

0 Answers  


What is the difference between *p++ and (*p)++ ?

0 Answers  






Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create

0 Answers  


What is a "RTTI"?

6 Answers   HCL,


Define the process of handling in case of destructor failure?

0 Answers  


What is the full form of dos?

0 Answers  


What is increment operator in c++?

0 Answers  


Define precondition and post-condition to a member function?

1 Answers  


What is the best sorting algorithm, when there is a large amount of data, that cannot be fit in the main memory. ?

1 Answers   Yahoo,


Categories