Skip to content

Commit 960e4fe

Browse files
authored
Update C_syntax.md
Removed confusion info in functions
1 parent 4445d13 commit 960e4fe

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

LearningC/C_Language_Shorts/C_syntax.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -241,26 +241,19 @@ a<op>b, where <op> is one of:
241241
Functions have a **prototype** which defines parameters and return value.
242242
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)
243243
> [!NOTE]
244-
> **prototype**
244+
> **prototype declaration**
245245
> ```
246246
> <return-type> <function-name> (<arguments>);
247247
> ```
248248
>
249-
> **declaration**
249+
> **definition**
250250
> ```
251251
> <return-type> <function-name> (<arguments>){
252252
> <function-body>
253253
> return <return-value>;
254254
> }
255255
> ```
256256
>
257-
> **inline** (all-in-one)
258-
> ```
259-
> <return-type> <function-name> (<arguments>){
260-
> <function-body>
261-
> return <return-value>;
262-
> }; // note the semi-colon
263-
> ```
264257
> example:
265258
> > in header
266259
> > ```

0 commit comments

Comments
 (0)