

MCQOPTIONS
Saved Bookmarks
1. |
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» D. Both A and B | |