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:
@ -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);
|
||||
|
Reference in New Issue
Block a user