+ 1
can somebody explain this?
can some one please explain this code to me? int a=3; int b=2; b=a++; cout<<++b;
2 Réponses
+ 1
first a is 3
b is 2
and then b is exchange to a++ ( its a increment )
now,
a is 4
b is 3
cout<<++b =
cout<<4
the answer is 4
0
thanks blizz