• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • 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 Antworten
+ 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

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
I need help
1 Votes
My hearts are disappering :(
0 Votes
What can html, css and javascript do
0 Votes
a phone or a laptop
0 Votes
Best programming languages to get a job fast ?
0 Votes
Where is code bit
0 Votes
How to make a selection on a calculator in Python
0 Votes
Java IDE for building a game.
0 Votes
Conducción de calor o Q=−kAdTdxQ = -k A \frac{dT}{dx}Q=−kAdxdT o Pared 2 m², espesor 0.1 m, k = 50 W/m°C, ΔT = 30°C → Q ≈ 30,0
0 Votes
Certificates
0 Votes