Problem of Pass by Reference in C++

From: alan (cheung_yuklun_at_i-cable.com)
Date: 12/15/03


Date: 15 Dec 2003 01:30:32 -0800

Hi All,

I have a problem on C++ pass by reference concept.

I saw some funcions which is :

e.g.
int& func(int &a)
{
....
..
}

I understand the use of "int &a",
but I would like to know what is the use of "int&" ? and how to use it?
any examples?

Please help.
Best regards,
Alan