• Kursy
  • Kompilator kodu
  • Dyskusja
  • Cennik
  • Zespoły
Menu
0

Why is not 25? Strange behavior in 4 cases

https://code.sololearn.com/w17k1z0OOy5S/?ref=app

php
27th Sep 2019, 12:38 PM
UraL
3 odpowiedzi
+ 2
Strange, doing preinc returns 16 🤔
27th Sep 2019, 1:37 PM
HNNX 🐿
HNNX 🐿 - avatar
+ 1
The order of which the post increment is evaluated is undefined https://stackoverflow.com/questions/47766470/why-these-both-post-increment-in-php-gives-the-same-answer
27th Sep 2019, 2:19 PM
jtrh
jtrh - avatar
+ 1
HNNX 🐿 yes, predec is 16. Strange
27th Sep 2019, 7:05 PM
UraL

Często masz takie pytania?

Ucz się bardziej efektywnie, za darmo:

  • Wprowadzenie do Pythona

    7.1M uczących się

  • Wprowadzenie do Java

    4.7M uczących się

  • Wprowadzenie do C

    1.5M uczących się

  • Wprowadzenie do HTML

    7.5M uczących się

Zobacz wszystkie kursy
Popularne dzisiaj
Quiz App: Step 3, Restart Button
0 Votes
How to do a responsive page?
1 Votes
Running a python code
1 Votes
Can I make coding projects here and run them without sololearn pro, only in sololearn.
0 Votes
PHP
0 Votes
How create a new language ?
0 Votes
Is there any debugging practice here or not?
1 Votes
Hey I've done the C# and SQL beginner and intermediate, but still feel like there could be more... Is there advanced somewhere?
0 Votes
Ai in future
1 Votes
Hola
0 Votes