void main()
{
int u=10,v=20;
for(int i=0; i<2; i++)
{
cout<<"1:<<u++<<"&"<<v+5<<endl;
cout<<"2:"<<++V<<"&"<<u+2<<endl;
}
}
what it's output ?????
i thing
1: 10 & 25
2: 26 & 13
1: 13 & 31
2: 32 &15
is it right or not ???
Not (assuming the typos are fixed).
Hint: think about what the equivalent code is for ++v
and how that is different from v+1
Last edited on
You know you can compile it, right?
As for the problem, I suppose you're confusing + with +=.