int main()
{
int A, B, C;
A=2;
B=4;
C=6;
mystery(B,C,A);
cout<<A+B+C;
}
void mystery(int D,int& E, int C)
{
int A;
A=C+1;
E=A+C;
C=C*2;
}
so is that A=2 (unchange)
B=4 (unchange)
C=5 (changed)
and the output is 11
is that correct??
i just found the question from my tutorial!!
Thanks a lot