Skip to content

Commit

Permalink
fixed an example regarding order of operations
Browse files Browse the repository at this point in the history
  • Loading branch information
corbar committed Oct 4, 2023
1 parent aafb632 commit 69c4e21
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/D-Processing/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,9 @@ x = x + x; // increment first = 8

```cpp
int x = 3, y;
y = ++x;
x = x + y; // add first = 7
y = x;
++x;
x = y + x; // add first = 7
```

## Ternary Expression
Expand Down

0 comments on commit 69c4e21

Please sign in to comment.