Sail E0 Webinar
Question

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


Options:
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



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers