Is there any performance difference between passing a pointer and passing a variable by reference? I'm assuming internally they're both using pointers but was wondering if there are any minor differences.
E.g
int v = 5;
by pointer
void MyFunc(int* P);
MyFunc(&v);
or by reference
void MyFunc(int& R);
MyFunc(v);