Skip to content
Snippets Groups Projects
Commit a9b57bb3 authored by orestis.malaspin's avatar orestis.malaspin
Browse files

correction init multiple

parent 49f5f093
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ x = 1; // affectation (expression)
c = 'a'; // affectation (expression)
int y = x; // déclaration et initialisation en même temps
int a, b, c; // déclarations multiples
int d = e = f = 1; // décl./init. multiples
a = b = c = 1; // init. multiples
```
# Types de base (1/4)
......@@ -351,7 +351,8 @@ if (x) { // si x s'évalue à `vrai`
## Pièges
```C
int x = y = 3;
int x, y;
x = y = 3;
if (x = 2)
printf("x = 2 est vrai.\n");
else if (y < 8)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment