0
Need help, (x)++
int x = 42; do { Console.WriteLine(x); x++; } while(x < 10); I don’t really understand the «x++;» what does it do?
3 Réponses
+ 1
it is the same as "x=x+1", you actually adding 1 to your variable. so in your case x = 42 + 1
0
Just faster way to write x=x+1
0
x++ means add number 1to your int ex( 42+1)
but ++x. or x--means substruct 1 ex(42_1)