Discussion :: OOPS Concepts
-
Which of the following is the correct way of declaring a function as constant?
A.
const int ShowData(void) { /* statements */ }
|
B.
int const ShowData(void) { /* statements */ }
|
C.
int ShowData(void) const { /* statements */ }
|
D.
Both A and B
|
Answer : Option C
Explanation :
No answer description available for this question.
Be The First To Comment