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