Posts by hugo • 1 point
1 post
-
0
votes0
answers24
viewsQ: & Operator in C++
I am studying C++ and I have doubts about this operator &, when should I use? void funct(int *var) { (*var)++; } void funct(int& var) { var++; } These two function increments the varial, but…