+ 1
what is prefix and postfix ?
Difference b/w x++ & ++x
3 odpowiedzi
+ 2
prefix first increases the value of x by 1 then puts it as the value of x.
and postfix first puts the value of x in the statements then increases it by 1.
0
its like preworkout & postworkout
pre= ++x
post means after the x
its x++
- 1
x++: access x then increase it
++x: increase x then access it