Quantcast
Channel: Visual C forum
Viewing all articles
Browse latest Browse all 15302

difference between & and * operator...

$
0
0

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?


Viewing all articles
Browse latest Browse all 15302

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>