Please explain ++x in layman's terms
I tried searching for this here, youtube, Google, Chegg, and a programming community on discord. I'm pretty desperate now because I I still don't understand this. haha I know that it's a prefix which means that it increments the value then does the expression, but I don't exactly understand what that means. I also know what y -= 3 means which is y-3.
int x = 8;
int y = ++x;
if (x > 5)
y -= 3;
else
y = 9;
Console.WriteLine(y);
I don't know what the answer is.