A
alan
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
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