Posted in

Exercice langage C corrigé déclaration des variables simples

(1)entier COMPTEUR{0 ,..., 300}
int COMPTEUR;
(2)entier X,Y{-120 ,..., 100}
char X,Y;
(3)entier MESURE{-10 ,..., 104}
int MESURE;
(4)réel SURFACE1{0.5 ,..., 150075}
float SURFACE1;6 positions significatives
(5)réel SURFACE2{-12 ,..., 1500750.5}
double SURFACE2;8 positions significatives
(6)entier N1{0 ,..., 210} = {0 ,..., 1024}
int N1;
(7)entier N2{-47 ,..., 47} = {-16384 ,..., 16384}
int N2;
(8)entier N3{0 ,..., 326} = {0 ,..., 1 073 741 824}
long N3;
(9)entier N4{-1280 ,..., 1285} = {-1 ,..., 3.4*1010}
double N4;11 positions significatives
(10)booléen TROUVE{vrai, faux}
int TROUVE;par convention

 

Laisser un commentaire

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *