0

what does x+=++x mean??

int x=9; x+=++x; Cout<<x; //outputs 20 How did this happen? I know that x++=x+1 but what does ++x mean??

4th Nov 2017, 6:26 PM
Noor al-Rajab
Noor al-Rajab - avatar
2 Answers