Q. Which of the following is the correct way to define a function with a const pointer parameter in C++?
β
Correct Answer: (A)
void myFunction(const int *x) { }
Explanation: The correct way to define a function with a const pointer parameter is 'void myFunction(const int *x) { }'.