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.
|
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
|
||||||
* Operators allow you to compare two or more expressions
|
#### Variable Designation
|
||||||
|
* `*` Dereference
|
||||||
|
* `&` Address (of operand)
|
||||||
|
#### Compare two or more expressions
|
||||||
* `==` equal to
|
* `==` equal to
|
||||||
* `!=` not equal to
|
* `!=` not equal to
|
||||||
* `<` less than
|
* `<` less than
|
||||||
* `>` greater than
|
* `>` greater than
|
||||||
* `<=` less than or equal to
|
* `<=` less than or equal to
|
||||||
* `>=` greater 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
|
```cpp
|
||||||
(7==5);
|
(7==5);
|
||||||
|
Reference in New Issue
Block a user