0
Why the output its 5
int b=6 int a=4 b=a++ Console.Writeline (++b)
5 odpowiedzi
0
5
0
b = a++; // Setting the value of b to 4 and then adds one to a.
++b // Adds one to b and then uses it.
0
thanks ;)
0
4 ki increment to 5
0
first line: b = 6
second line: a = 4
third line: b = 4, a = 5
fourth line: b = 4+1, write b