Changed 'i' variable to 'counter'
'i' is not in discussion at this point, 'counter' is.
This commit is contained in:
parent
e3b35f852a
commit
d6dd01eca3
1 changed files with 1 additions and 1 deletions
|
@ -266,7 +266,7 @@ Operators `++` and `--` can be placed both after and before the variable.
|
|||
- When the operator goes after the variable, it is called a "postfix form": `counter++`.
|
||||
- The "prefix form" is when the operator stands before the variable: `++counter`.
|
||||
|
||||
Both of these records do the same: increase `i` by `1`.
|
||||
Both of these records do the same: increase `counter` by `1`.
|
||||
|
||||
Is there any difference? Yes, but we can only see it if we use the returned value of `++/--`.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue