How compiler understands prefix and postfix increment ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How compiler understands prefix and postfix increment ?

If n++ means n = n+1 Then ++n means ______? Give expression

29th Dec 2020, 2:52 PM
GEN
GEN - avatar
2 Answers
+ 3
b=a++; // equal b=а; a=a+1; b=++a; // equal а=а+1; b=а;
29th Dec 2020, 2:57 PM
Yuliya Lisogor
Yuliya Lisogor - avatar
0
It's good answer according to the assignment increment Operation. But what about simply: n++ ++n
30th Dec 2020, 3:15 AM
GEN
GEN - avatar