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