Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cours_prog
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
yassin.elhakoun
cours_prog
Commits
a521c14a
Commit
a521c14a
authored
5 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
mise a jour fonctions
parent
23bdfd0c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
base_2.md
+9
-5
9 additions, 5 deletions
base_2.md
with
9 additions
and
5 deletions
base_2.md
+
9
−
5
View file @
a521c14a
...
@@ -73,7 +73,8 @@
...
@@ -73,7 +73,8 @@
# Les fonctions (1/N)
# Les fonctions (1/N)
-
Les parties indépendantes d'un programme sont mises dans des fonctions.
-
Les parties indépendantes d'un programme.
-
Permettent de modulariser et compartimenter le code.
-
Syntaxe:
-
Syntaxe:
```C
```C
...
@@ -82,6 +83,9 @@
...
@@ -82,6 +83,9 @@
return expression; // type donne le type d'expression
return expression; // type donne le type d'expression
}
}
```
```
# Les fonctions (2/N)
-
Exemple:
-
Exemple:
```C
```C
...
@@ -98,7 +102,7 @@
...
@@ -98,7 +102,7 @@
}
}
```
```
# Les fonctions (
2
/N)
# Les fonctions (
3
/N)
-
Il existe un type
`void`
{.C}, "sans type", en C.
-
Il existe un type
`void`
{.C}, "sans type", en C.
-
Il peut être utilisé pour signifier qu'une fonction ne retourne rien, ou qu'elle n'a pas d'arguments.
-
Il peut être utilisé pour signifier qu'une fonction ne retourne rien, ou qu'elle n'a pas d'arguments.
...
@@ -116,7 +120,7 @@
...
@@ -116,7 +120,7 @@
}
}
```
```
# Les fonctions (
3
/N)
# Les fonctions (
4
/N)
## Prototypes de fonctions
## Prototypes de fonctions
...
@@ -135,7 +139,7 @@
...
@@ -135,7 +139,7 @@
}
}
```
```
# Les fonctions (
4
/N)
# Les fonctions (
5
/N)
## Arguments de fonctions
## Arguments de fonctions
...
@@ -157,7 +161,7 @@
...
@@ -157,7 +161,7 @@
}
}
```
```
# Les fonctions (
5
/N)
# Les fonctions (
6
/N)
## Arguments de fonctions: pointeurs
## Arguments de fonctions: pointeurs
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment