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
373442a7
Commit
373442a7
authored
4 years ago
by
orestis.malaspin
Browse files
Options
Downloads
Patches
Plain Diff
Update base_6.md
parent
3ce6cf04
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_6.md
+5
-3
5 additions, 3 deletions
base_6.md
with
5 additions
and
3 deletions
base_6.md
+
5
−
3
View file @
373442a7
...
...
@@ -6,20 +6,22 @@
## Type `enum` (1/2)
*
Un
**type énuméré**
est un ensemble de valeurs constantes.
*
En
`C`
s
e
sont des entiers numérotés de 0.
*
Un
**type énuméré**
est un ensemble de valeurs constantes
: les
*variantes*
.
*
En
`C`
les variante
s sont des entiers numérotés
à partir
de 0.
```C
enum days {
monday, tuesday, wednesday,
thursday, friday, saturday, sunday
};
```
*
On peut aussi donner des valeurs "custom"
```
C
enum days {
monday = 2, tuesday = 8, wednesday = -2,
thursday = 1, friday = 3, saturday = 12, sunday = 9
};
```
## Type `enum` (2/2)
...
...
@@ -43,7 +45,7 @@
## Doubles pointeurs
- Un pointeur éta
i
t un type comme un autre, on peut définir un pointeur sur un pointeur:
-
Un pointeur éta
n
t un type comme un autre, on peut définir un pointeur sur un pointeur:
```C
// pointeur sur un pointeur d'entier 32bits
...
...
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