In java /javascript why does c=++a and c=--a reasults same value c=a ? what does ++a and --a really mean? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

In java /javascript why does c=++a and c=--a reasults same value c=a ? what does ++a and --a really mean?

10th Aug 2017, 12:59 PM
Prakash
Prakash - avatar
1 Answer
+ 5
You're most likely talking about c = a++. c = ++a will result in c storing the the value of incremented a.
10th Aug 2017, 1:35 PM
Hatsy Rei
Hatsy Rei - avatar