- Page 2 and 3:
Eric Berthomier, Daniel SchangLe C
- Page 4 and 5:
Avant de commencerL’ouvrage que v
- Page 6 and 7:
Chapitre1Premiers pas Pour pouvoi
- Page 8 and 9:
5Scite est un éditeur très simple
- Page 10 and 11:
7La fonction puts est stockée dans
- Page 12 and 13:
9return 0; /* Aucune erreur renvoy
- Page 14 and 15:
Chapitre2Variables (1 repartie)Alle
- Page 16 and 17:
13 Lisez le programme, ains
- Page 18 and 19:
15Exercice n°2.2 — Déclarer, af
- Page 20 and 21:
17printf ("b vaut %c.\n",b);printf
- Page 22 and 23:
Chapitre3Variables (2 epartie)Dans
- Page 24 and 25:
21Comme pour printf, nous reconnais
- Page 26 and 27:
23Pour un affichage plus agréable
- Page 28 and 29:
25Corrigé de l’exercice n°3.5
- Page 30 and 31:
Chapitre4ConditionsDans ce chapitre
- Page 32 and 33:
29 Ils servent à comparer deux no
- Page 34 and 35:
31Par exemple :int i1 =1;int i2 =0;
- Page 36 and 37:
33Exercice n°4.3 — Voyelles, con
- Page 38 and 39:
Chapitre5Mise au pointL’objet de
- Page 40 and 41:
37car = getchar ();/* On le compare
- Page 42 and 43:
39/* Pour notre information */print
- Page 44 and 45:
Chapitre6Et les Shadoks pompaient :
- Page 46 and 47:
43 Le problème de la comparaison d
- Page 48 and 49:
45x=i++x=i--x=++ix=--iCopie d’abo
- Page 50 and 51:
47Corrigé de l’exercice n°6.4
- Page 52:
49do {scanf("%d",&nbre);if (nbre==2
- Page 55 and 56:
52 for (i=0; i
- Page 57 and 58:
54 Instructions :- sur la ligne n o
- Page 59 and 60:
56 printf("\n");}return 0;}Corrigé
- Page 62 and 63:
Chapitre8Pointeurs et fonctionsDans
- Page 64 and 65:
61Base 16 Base 100 01 12 23 34 45 5
- Page 66 and 67:
63*ptr_car = 'E'; /* on modifie le
- Page 68 and 69:
65La constante NULL vaut 0. Or un p
- Page 70 and 71:
67Exemple de programme complet :#in
- Page 72 and 73:
69Le nombre no est : 13La procédur
- Page 74 and 75:
71return 0;}Observez attentivement
- Page 76 and 77:
73printf ("Après le nombre est : %
- Page 78:
75avance_Position (&x);printf ("Nou
- Page 81 and 82:
78 Numéro de case 0 1 2 3 4 5
- Page 83 and 84:
80 #include #include int main (
- Page 85 and 86:
82 Enfin, voici un exemple de p
- Page 87 and 88:
84 La fonction strcat (, )
- Page 89 and 90:
86 La fonction sscanf fait le c
- Page 91 and 92:
88 for (j=0; j
- Page 94 and 95:
Chapitre10Structures et fichiers C
- Page 96 and 97:
93personne p;La seconde solution es
- Page 98 and 99:
95- p fichier=fopen(nom fichier, "a
- Page 100 and 101:
Chapitre11Débogage dun programmeL
- Page 102 and 103:
99Essayez :#include int main () {pr
- Page 104 and 105:
101Ce programme est censé afficher
- Page 106 and 107:
103Figure 11.1 - Débogage d’un p
- Page 108 and 109: 105gets(chaine);sscanf(chaine,"%d",
- Page 110 and 111: Chapitre12ComplémentsCe chapitre v
- Page 112 and 113: 109On notera que la solution suivan
- Page 114 and 115: 111Certains compilateurs imposent d
- Page 116 and 117: 113 Vous savez qu’une fonc
- Page 118: 115 Lorsque vous compilez, vous
- Page 121 and 122: 118 }return 0;}L’exécution do
- Page 123 and 124: 120 Voici un exemple de foncti
- Page 125 and 126: 122 saisie (tab,TAILLE);printf("
- Page 127 and 128: 124 }printf("\n");}Il est import
- Page 129 and 130: 126 Figure 13.3 - Le jeu de la v
- Page 131 and 132: 128 }int nbr_cycles;int matrice[
- Page 133 and 134: 130 compte -= matrice[ligne][col
- Page 136 and 137: Chapitre14En deuxième lecture Pen
- Page 138 and 139: 135Dans ce cas, à l’exécution,
- Page 140 and 141: 137Employé de façon irréfléchie
- Page 142 and 143: 139Verbe : programmerje programmetu
- Page 144 and 145: 141tableau désigne l’adresse de
- Page 146 and 147: 143Par exemple :double * tableau[10
- Page 148 and 149: 145case 1:printf("Nombre égal à u
- Page 150 and 151: Chapitre15ExercicesCes quelques exe
- Page 152 and 153: 149 Le but du jeu est de deviner e
- Page 154 and 155: 151Compléter le programme suivant
- Page 156 and 157: 153scanf ("%d",&valeur);} while ((
- Page 160: 157// On met la balle dans la grill
- Page 164 and 165: AnnexeBBon à savoirType dedonnéeS
- Page 166: 163Bien des erreurs pourraient êtr
- Page 169 and 170: 166 Table des matières2 Variables
- Page 171 and 172: 168 Table des matières11.5 Bonne c
- Page 174 and 175: Liste des tableaux4.1 - Opérateurs
- Page 176: * * *Achevé d’imprimerAchevé d