Update
This commit is contained in:
parent
98ed4c7c84
commit
bbe9c7622e
7 changed files with 12 additions and 9 deletions
|
@ -21,7 +21,7 @@ You should probably know at least the completely basic ideas of programming befo
|
|||
- Very old, well established and tested by time.
|
||||
- Recommended by us for serious programs.
|
||||
|
||||
If you come from a language like [Python](python.md) or [JavaScript](javascript.md), you may be shocked that C doesn't come with its own [package manager](package_manager.md), [debugger](debugger.md) or [build system](build_system.md), it doesn't have [modules](module.md), [generics](generics.md), [garabage collection](garbage_collection.d), [OOP](oop.md), [hashmaps](hashmap.md), dynamic [lists](list.md), [type inference](type_inference.md) and similar "[modern](modern.md)" featured. When you truly get into C, you'll find it's a good thing.
|
||||
If you come from a language like [Python](python.md) or [JavaScript](javascript.md), you may be shocked that C doesn't come with its own [package manager](package_manager.md), [debugger](debugger.md) or [build system](build_system.md), it doesn't have [modules](module.md), [generics](generics.md), [garabage collection](garbage_collection.d), [OOP](oop.md), [hashmaps](hashmap.md), dynamic [lists](list.md), [type inference](type_inference.md) and similar "[modern](modern.md)" features. When you truly get into C, you'll find it's a good thing.
|
||||
|
||||
Programming in C works like this:
|
||||
|
||||
|
@ -205,7 +205,7 @@ X is not greater than 10.
|
|||
And it is also smaller than 5.
|
||||
```
|
||||
|
||||
About **conditions** in C: a condition is just an expression (variables/functions along with arithmetic operators). The expression is evaluated (computed) and the number that is obtained is interpreted as *true* or *false* like this: **in C 0 means false, anything else means true**. Even comparison operators like `<` and `>` are technically arithmetic, they compare numbers and yield either 1 or 0. Some operators commonly used in conditions are:
|
||||
About **conditions** in C: a condition is just an expression (variables/functions along with arithmetic operators). The expression is evaluated (computed) and the number that is obtained is interpreted as *true* or *false* like this: **in C 0 (zero) means false, 1 (and everything else) means true**. Even comparison operators like `<` and `>` are technically arithmetic, they compare numbers and yield either 1 or 0. Some operators commonly used in conditions are:
|
||||
|
||||
- `==` (equals): yields 1 if the operands are equal, otherwise 0.
|
||||
- `!=` (not equal): yields 1 if the operands are NOT equal, otherwise 0.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue