Possible Duplicate:
How is reference implemented internally?
void f (int& a)
{
a ++;
}
int main ()
{
int b = 5;
f(b);
cout << b << endl; //prints 6
}
When I saw the syntax for references in C++, it initially looked like the variable b (if it were an object) would be copied into f. How do these references actually work under the hood? (Some simple asm would be great.)