How const functions will be treated by compiler?

Answer Posted / anil

it not allow to change value of the const variable.

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain the use of virtual destructor?

626


Which of the following is evaluated first: a) && b) || c) !

1809


How do you generate a random number in c++?

605


Explain the concept of memory leak?

631


What is the role of copy constructor in copying of thrown objects?

602






What do you mean by persistent and non persistent objects?

740


What is difference between class and function?

585


How are pointers type-cast?

649


What is setf in c++?

584


How the keyword struct is different from the keyword class in c++?

585


Explain what is polymorphism in c++?

629


What is pure virtual function? Or what is abstract class?

592


What is a base class?

602


Can static member variables be private?

628


How will you call C functions from C ++ and vice-versa?

661