How const functions will be treated by compiler?
Answer Posted / achal ubbott
A member function can be const qualified. e.g.
class SAAMPLE
{
int m1;
void f() const;
}
Now function f will not be able to modify the value of data
members. If so done the compiler would report an error.
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
Which one is a preferred language C or C++? Why?
Write about a nested class and mention its use?
What is the first name of c++?
what Is DCS ? what i will get benefit when i did?
Explain how an exception handler is defined and invoked in a Program.
What are the benefits of pointers?
What does return 0 do in c++?
Is c++ a pure oop language?
We use library functions in the program, in what form they are provided to the program?
What do you mean by inheritance in c++?
What is binary search in c++?
How much do coding jobs pay?
When is the destructor called?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What type of question are asked in GE code writing test based on c++ data structures and pointers?