0

No comprendo que el resultado sea 2

$a=2; $b=a++ https://code.sololearn.com/WkZFWDAHHr8Y/?ref=app

3rd Dec 2018, 4:32 PM
Dani Pérez
Dani Pérez - avatar
2 Antworten
+ 4
Here first the value of a is assigned to b and then the value of a is incremented So final values are a=3 b=2
3rd Dec 2018, 4:46 PM
Rstar
Rstar - avatar
+ 1
a=2; b=a++; es egual b=a a=a+1
3rd Dec 2018, 5:40 PM
MBZH31
MBZH31 - avatar