Menu

Reddit - Please wait for verification

Reading 0:00
15s threshold

Hey peeps, Ive only just started trying to learn C# and this one concept in a course im doing is confusing the shit out of me Int a = 1; Int b = a++; The dude in my course says this would make the value of b, 1 and the value of a, 2. I cannot understand how that works no matter how much i googs it. In my mind a’s value is set to 1 and we are only incrementing it for b and yet b is somehow still only 1, i also dont at all get how the value of a changes entirely even when its value has already been set as 1 Any insight would be sensational, cheers dudes. submitted by /u/HeftyPressure1700 [link] [comments]