Programming Languages C++ Objective
Nov 23, 2012

Which of the following is the correct way of declaring a function as constant?

Choose the correct answer:
A) const int ShowData(void) { /* statements */ }
B) int const ShowData(void) { /* statements */ }
C) int ShowData(void) const { /* statements */ }
D) Both A and B
Detailed Explanation

c++

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback