Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
int x=10, a=0, b=0; // pre-increment operator ++x a=++x; // a=11, x=11 // post-increment operator x++ b=x++; // b=11, x=12 // here two operation are performed first is addition of 1 and x and then assignment of addition into variable x x=x+1; // x=13 // compund assignment operation += x+=1; // x=14
28th Mar 2020, 5:31 PM
RAJDEEP DABRAL
RAJDEEP DABRAL - avatar