postfix and prefix increment or decrement operators very very confusing for me i try my best but i can not understand the basic different between them plz help me i know The prefix form first performs the increment operation and then returns the value of the increment operation. The postfix form first returns the current value of the expression and then performs the increment operation on that value. i dont know why i can not understanding this plz help me it is very very confusing there are two codes that give same output why first is class LoopOperator { public … |
0
49 | ||

int i,j=4; i=j++*++j*j--; what is the result of i and how it is evaluated please help me. the result is 125 and i don't understand the evaluation part |
0
25 | ||

I'm going over a practice exam right now and I've come across something I can't figure out. I understand what incrementing is but I just don't know why the answer is 0. //What is the value of a after the following code is run (int a=12). a += a -= a *= a; I understand that a += a is 24 which is not my problem. When I run a cout after each incrament i get each a value equal to 24,0,0. How does a get from 24 to zero? Thats what im confused about. Is it becuase its 12 … |
0
4 |

The End.