From b65c5953b1a3ea13f538bf6866a144074876ae1c Mon Sep 17 00:00:00 2001 From: "benji.benji" Date: Fri, 13 Nov 2026 12:35:01 +0100 Subject: [PATCH] sync: 2026-11-13 12:35 --- DEV1.1/CM.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/DEV1.1/CM.md b/DEV1.1/CM.md index 7424b7f..4d242b1 100644 --- a/DEV1.1/CM.md +++ b/DEV1.1/CM.md @@ -1092,3 +1092,17 @@ Les seuls opérateurs qui s'appliquent à des enregistrements sont `=`, `&` et ` printf("age : %d\n", martin.age); ``` +```c +int majeur(etudiant* e) { + return (*e).age >= 18; +} + +int main(void) { + ... + if (majeur(&martin) { + ... + } + ... +} +``` +