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

Review the verified answer and explanation for this DemoPaper-Pakistan past-paper question on CampusFin.

Which of the following is the correct way of declaring a function as constant? Answer: int ShowData(void) const { /* statements */ }