Accéder au contenu principal

exercice en java périmètre et surface d'une cercle






Commentaires

Posts les plus consultés de ce blog

TP7 : Les chaînes de caractères

TP7 : Les chaînes de caractères Exercice N°1 : a) char a[] = "un\ndeux\ntrois\n"; correcte Espace: 15 octets b) char b[12] = "un deux trois" Correction: char b[14] = "un deux trois"; Espace: 14 octets c) char c[] = 'abcdefg'; Correction: char c[] = "abcdefg"; Espace: 8 octets d) char d[10] = 'x'; Correction: char d[10] = {'x', '\0'} ou char d[10] = "x"; Espace: 2 octets e) char e[5] = "cinq"; correcte Espace: 5 octets f) char f[] = "Cette " "phrase" "est coupée"; correcte Espace: 23 octets g) char g[2] = {'a', '\0'}; correcte Espace: 2 octets h) char h[4] = {'a', 'b', 'c'}; Correction: char h[4] = {'a', 'b', 'c', '\0'}; Espace: 4 octets i) char i[4] = "'o'"; correcte, mais d'une chaîne contenant les caractères '\'', 'o', '\'' et '\0...