0
What is the difference between Pre increment and post increment?
can anyone explain by using it in arithmetic expressions?
3 Answers
+ 7
x = 10;
return x++/2;
//5
x = 9;
return ++x/2;
//5
+ 4
x = 10;
return x++;
//10
return x;
//11
x = 10;
return ++x/
//11
+ 1
x++/2 ;
//what will be the results and effects?
++x/2;