+ 1
Apersand & or asterisk *
Which special sign to use in declaration (definition) of function to pass by reference? & or *? Because I've seen func(int &a) {} instead of func(int *a). Some help and explain? :-) Regards.
3 Answers
+ 6
Both can be used in a sense as pointers are reference BUT your answer is what follow :
* means that the variable is a pointer
& means that the variable is a reference
+ 2
Thanks, guys. I need to think it over. ;-)