• Курсы
  • Компилятор кода
  • Обсуждения
  • Цены
  • Teams
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 ответов
+ 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

Часто задают такие вопросы?

Учитесь эффективнее, бесплатно:

  • Введение в Python

    7.1M учащихся

  • Введение в Java

    4.7M учащихся

  • Введение в C

    1.5M учащихся

  • Введение в HTML

    7.5M учащихся

Смотреть все курсы
Актуальное сегодня
Ошибка в приложении Sololearn
1 Votes
Is anyone else experiencing this Sololearn issue?
0 Votes
NEO V2.0
1 Votes
Best language?
0 Votes
solo learn program issue - iPhone?
1 Votes
How do I keep myself motivated in coding
0 Votes
Is it possible to write Rust code that is as compact and expressive as Python?
0 Votes
Learn - multiple choice course questions display in one box making it impossible to continue
1 Votes
Sql practice
0 Votes
I want to know how to make an Payment App like what I need to learn I need some guidance
0 Votes