Programmation c
Fermé
martin
-
29 nov. 2020 à 06:33
Whismeril Messages postés 18279 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 17 mars 2023 - 29 nov. 2020 à 08:42
Whismeril Messages postés 18279 Date d'inscription mardi 11 mars 2003 Statut Contributeur Dernière intervention 17 mars 2023 - 29 nov. 2020 à 08:42
A voir également:
- Programmation c
- Programmation - Guide
- Application de programmation - Guide
- Logiciel programmation clé voiture gratuit - Forum Programmation
- Programmation logo tortue télécharger - Télécharger - Études & Formations
- Scratch programmation - Télécharger - Éducatifs
1 réponse
Whismeril
Messages postés
18279
Date d'inscription
mardi 11 mars 2003
Statut
Contributeur
Dernière intervention
17 mars 2023
888
29 nov. 2020 à 08:42
29 nov. 2020 à 08:42
Bonjour
Soit le code
a contient la valeur de tableau[0] et i vaut 1 => i est incrémenté après avoir été utilisé.
maintenant
Soit le code
i vaut toujours 1, mais a contient la valeur de tableau[1] => i est incrémenté avant avoir été utilisé.
Soit le code
i = 0; a = tableau[i++];
a contient la valeur de tableau[0] et i vaut 1 => i est incrémenté après avoir été utilisé.
maintenant
Soit le code
i = 0; a = tableau[++i];
i vaut toujours 1, mais a contient la valeur de tableau[1] => i est incrémenté avant avoir été utilisé.