I have a function whose parameter is a reference. I need to pass a pointer argument to this function. Is the below declaration valid for this situation? If not, what do I need to do?
function foo(int& myParam) {
//some code here
}
//function call
int *myArg;
foo(myArg);