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

How a pointer differs from a reference?

1009


Explain the concept of friend function in c++?

848


What are manipulators in c++ with example?

819


What is the use of data hiding?

807


What are the advantages of inheritance in c++?

890


What is the first name of c++?

809


What is a multimap c++?

909


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

871


Is it possible to have a recursive inline function in c++?

805


What is difference between c++ and c ++ 14?

806


How can virtual functions in c++ be implemented?

857


Can java be faster than c++?

913


What is the two main roles of operating system?

745


Am studying basic c++ programming, have been given the following assignment. Design a linear program to calculate the maximum stress a material can withstand given a force and a diameter of a circle. To find the required area pi should be defined. Have most of the program sorted out but am at a loss as to how to show the calculations required. Can anyone help?

1981


Who calls main function?

829