sync: 2026-11-13 12:40
This commit is contained in:
1 parent
b65c5953b1
commit
d3918fc1cc
1 file changed
+9
-1
+9
-1
@@ -1094,7 +1094,7 @@ printf("age : %d\n", martin.age);
|
|||||||
|
|
||||||
```c
|
```c
|
||||||
int majeur(etudiant* e) {
|
int majeur(etudiant* e) {
|
||||||
return (*e).age >= 18;
|
return (*e).age >= 18;
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
@@ -1106,3 +1106,11 @@ int main(void) {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
l'écriture (\*e) est remplacer par e->
|
||||||
|
|
||||||
|
```c
|
||||||
|
int majeur(const etudiant* e) {
|
||||||
|
return e->age >= 18;
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Reference in new issue
Block a user