Need help, (x)++ | SoloLearn: Learn to code for FREE!

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?

11/24/2017 8:57:31 PM

frans lol

3 Answers

New Answer

+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)