-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
Where is the problem?
- In the last two code snippets.
What is the problem?
- After
$x = 0;,$y = $x++;is rewritten as$y = $x + 1;,$x++;. These snippets are not equivalent. In the first snippet,$yequals0after which$xgets incremented, whereas in the second snippet$ybecomes1and$xgets incremented.
Please don't change anything below this point.
- Build ID: HHVM=HHVM-4.164.0:HSL=v4.108.1:2024-02-08T13:44:46+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
- Page requested: /hack/expressions-and-operators/incrementing-and-decrementing
- Page requested at: Sun, 04 Aug 2024 19:54:28 +0000
- Controller: GuidePageController
Metadata
Metadata
Assignees
Labels
No labels