Answers for "postfix and prefix increment"

0

postfix and prefix increment

var x = 1;
x = ++x + x++ * x
Posted by: Guest on September-13-2021
0

postfix and prefix increment

++x = x is now 2
x++ = x is now 3 but the showed value remains 2
x = is 3

x = 2 + (2 * 3)
x = 8
Posted by: Guest on September-13-2021

Browse Popular Code Answers by Language