Pass my reference - Reference variables
-----------------------------------------------
void newVal(int& num1,int& num2)
{
.
.
.
}

newVal(num1,num2);

Pass my reference - Using Pointers
-----------------------------------------------
void newVal(int *num1,int *num2)
{
.
.
.
}

newVal(&num1,&num2);

does this assembly code of the function call for newVal() look the same if i were to use pointers and reference variables?
Posted on 2011-01-04 17:08:40 by dougfunny

Use your compiler to generate an assembly listing to verify for yourself what the assembly language would look like.
Posted on 2011-01-04 18:10:34 by p1ranha