0
I'm not able to understand pre and postfix operators..please help.
2 odpowiedzi
+ 4
Pre-fix
y=++x
1. x=x+1
2. y=x
if x=1 then y=2 (first the value of x increased and then the value of x is assigned to y)
------------------------------
Post-fix
y=x++
1. y=x
2. x=x+1
if x=1 then y=1 (first the value of x is assigned to y and then value of x will be increased)