Reference
So i just finished my chapter on references. But i dont see when id need to edit a target with a referece.
examples of usfulness plox
examples of usfulness plox
examples of usfulness ploxvoid PartyPowah(int &x, int &y)
{
x = y * x + y / x;
}
int main()
{
int x,y;
partypowah(&x,&y);
cout << x << " & " << y << endl;
}
partypowah(int *x, int *y)
{
x = 1;
y = 2;
}