C++ Access Control Question:
Download Questions PDF

If an argument to a function is declared as const, then

a. function can modify the argument
b. Function can't modify the argument
c. const argument to a function is not possible
d. None of these

Answer:

b. Function can't modify the argument

Download C++ Access Control Interview Questions And Answers PDF

Previous QuestionNext Question
Assigning one or more function body to the same name is called_______________

a. Function Overriding
b. Function Overloading
c. Both a and b
d. None
In any ways, Non-member function cannot have access to the private data of the class.

a. True
b. False