Updated index.md (#21259)

added a few more operators that would be useful to beginners.  Sprinkled in a little extra terminology about pointers in order to... point... beginners towards something to look up.
This commit is contained in:
Kevin Haynes
2018-11-08 08:18:06 -05:00
committed by nik
parent 86be0947b5
commit 3674a818e3

View File

@ -129,14 +129,24 @@ It should be noted that while comments do add an extra level of readability to o
As you may notice, the comments are ignored during program execution and do not show up on checking the output of the program.
#### Operators
* Operators allow you to compare two or more expressions
## Operators
#### Variable Designation
* `*` Dereference
* `&` Address (of operand)
#### Compare two or more expressions
* `==` equal to
* `!=` not equal to
* `<` less than
* `>` greater than
* `<=` less than or equal to
* `>=` greater than or equal to
* `||` Logical OR
* `&&` Logical AND
#### Assigns the right expression/value to the left variable/pointer
* `=` Assignment
* `+= , -=` Addition/subtraction assignment
* `*= , /=` Multiplication/Division assignment
```cpp
(7==5);