Increments | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Increments

Increments where challenging to understand.

6th Oct 2020, 8:59 PM
Victor Gama
Victor Gama - avatar
2 Answers
0
Prefix is when x incremented by 1, then y is assigned the value of x Postfix is when y is assigned the value of x, then x is incremented by 1
6th Oct 2020, 9:08 PM
Victor Gama
Victor Gama - avatar
+ 1
Print the actual increment it will make more sense Console.WriteLine(a++);
6th Oct 2020, 10:01 PM
D_Stark
D_Stark - avatar