Which of the following is the correct way of declaring a function as constant?
1. const int ShowData(void) { /* statements */ }
2. int const ShowData(void) { /* statements */ }
3. int ShowData(void) const { /* statements */ }
4. Both A and B
Posted Date:-2021-02-24 09:21:47