13 lines
789 B
HTML
13 lines
789 B
HTML
<p>
|
|
Expressions in c are basically the <b>building blocks</b> of statements, which them self are used to build your program.
|
|
The most simple expressions are just values, variables or even functions. You can chain these simple expressions to
|
|
even bigger expressions with <b>operators</b>. The semicolon at the end turns it into a statement.
|
|
</p>
|
|
<p>
|
|
C has many different operators. Arithmetic ones like <b>+</b> and <b>-</b>, boolean logic like <b>&&</b> and <b>||</b>,
|
|
bit-wise logic and shifts like <b>&</b> or <b><<</b>, assignment <b>=</b> and many more. <a href="https://en.wikipedia.org/wiki/Operators_in_C_and_C%2B%2B">Here is a list of all the operators</a>.
|
|
</p>
|
|
<p>
|
|
Try out some operators to build expressions and see how they effect the evaluated output.
|
|
</p>
|