Increments | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Increments

Increments where challenging to understand.

6th Oct 2020, 8:59 PM
Victor Gama
Victor Gama - avatar
2 Réponses
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