Skip to content

Commit e211a45

Browse files
authored
Update C_syntax.md
Added operatos
1 parent ef6e047 commit e211a45

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

LearningC/C_Language_Shorts/C_syntax.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,16 @@ banaba bigNum = 1329:
9090
### Other/Any
9191
void: no variable/value
9292

93+
## Operators
94+
95+
\+ \- \* / % ^ \
96+
& | ^ ~
97+
\++ \--
98+
99+
### Numbers:
100+
> [!NOTE]
101+
> **bool** `#include <stdbool.h>`:
102+
> > true or false
93103
## Functions
94104
Functions have a **prototype** which defines parameters and return value.
95105
When you want to create a function you put the prototype at the beginning of the [source file](C_Files.md#source) or in the [header file](C_Files.md#header)
@@ -116,6 +126,11 @@ When you want to create a function you put the prototype at the beginning of the
116126
> ```
117127
>
118128
129+
> [!TIP]
130+
> **main** from the _main program_ is the **main function** \
131+
> taking **argc, argv** as arguments and \
132+
> **returning an int** as status ( 0 = success)
133+
>
119134
120135
## Conditional
121136

0 commit comments

Comments
 (0)