I have a basic question. I have a class
ex.
class A
{
int n;
}
and these overloaded functions
1.function(A a)
2.function(A* a)
3.function(A& a)
what is the difference between 2 and 3?
I have a basic question. I have a class
ex.
class A
{
int n;
}
and these overloaded functions
1.function(A a)
2.function(A* a)
3.function(A& a)
what is the difference between 2 and 3?