Q:

When both the const and non-const version of a functions are required?

0

When both the const and non-const version of a functions are required?


  1. Return value have to be different in const
  2. Return value have to be same in const
  3. Return values have to be ignored
  4. Return values have to be suppressed

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

(a).Return value have to be different in const

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING MEMBER FUNCTIONS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If a function is to be made const, which is the co... >>
<< How is it possible to have both const and non-cons...