Exam 2005 MONTIGNY Eric Correction de l ? examen de langage C du mai EXERCICE SUR POINTS SUR include int mafonction int int main int r t a b e a b r a t b printf n d d r b t r printf n d d t b e mafonction t b r b printf n d d d a

MONTIGNY Eric Correction de l ? examen de langage C du mai EXERCICE SUR POINTS SUR include int mafonction int int main int r t a b e a b r a t b printf n d d r b t r printf n d d t b e mafonction t b r b printf n d d d a r e int mafonction int a intb int c c a a b b c return c Le résultat en images Page sur CMONTIGNY Eric EXERCICE SUR POINTS SUR include QUESTION DECLARER UNE STRUCTURE NOM typedef struct N char lettre int position struct N suivant struct N precedent Nom QUESTION ALLOCATION Nom allouermaille char titi Nom p p Nom malloc sizeof Nom p - lettre titi p - suivant NULL p - precedent NULL return p QUESTION REMPLISSAGE void remplirposition Nom p char i 'a' int b while p- lettre i i 'z' b i if p- lettre i p- position b else i 'A' b while p- lettre i i 'z' b i p- position b QUESTION AFFICHER MAILLE void a ?cher maille Nom p printf lettre c n p- lettre printf position d n p- position Page sur CMONTIGNY Eric QUESTION CHAINAGE ARRIERE Nom chainage arriere Nom tete Nom p Nom q q tete if tete NULL return p while q - suivant NULL q q- suivant q- suivant p p- precedent q return tete QUESTION AFFICHE LISTE void a ?che liste Nom p int i while p NULL printf maille d n i a ?cher maille p p p- suivant i QUESTION CREER LISTE Nom crer liste char c Nom p tete NULL int i j while c i ' ' i for j i- j j-- p allouer maille c j remplir position p tete chainage arriere tete p return tete QUESTION MINUSCULE VERS MAJUSCULE void min maj Nomp while p NULL if p- lettre 'A' p- lettre 'Z' if p- lettre ' ' p- lettre p- lettre - X remplir position p p p- suivant Page sur CMONTIGNY Eric QUESTION RECOMPOSER LA CHAINE char recomposer chaine Nom tete char s int i Nom q tete while q NULL i q q- suivant s char malloc isizeof char i q tete while q NULL s i q- lettre q q- suivant return s QUESTION LA FONCTION PRINCIPALE int main Nom tete NULL char c c char malloc sizeof char printf entrer une chaine de caractere scanf s c printf chaine de caractere saisie s c tete crerliste c minmaj tete c recomposer chaine tete printf nchaine ?nale s c Le résultat en images Page sur CMONTIGNY Eric EXERCICE SUR POINTS SUR Page sur include QUESTION DECLARER UNE STRUCTURE TOTO typedef struct toto int tab int dim Toto QUESTION ALLOCATION MEMOIRE Toto allouer toto int N int tablo Toto p p Toto malloc sizeof Toto tablo int malloc Nsizeof int p- tab tablo p- dim N return p QUESTION REMPLISSAGE DU TABLEAU void remplir tab Toto p

Documents similaires
g efort Introduction à la G EFORT http www efort comIntroduction Les générations G G puis G de téléphonie mobile se sont inscrites dans une continuité technologique chaque nouvelle génération était une évolution de la précédente Avec la G une véritable ru 0 0
licence tp2 ère Année Licence TP Utilisation de SYSTRAN Translation Project Manager STPM SYSTRAN Translation Project Manager STPM SYSTRAN Translation Project Manager STPM est un utilitaire de traduction ? conçu pour les auteurs linguistes et traducteurs e 0 0
République Algérienne Démocratique et Populaire Ministère de l’Education Nation 0 0
Dossier sur le reseau st quoi un réseau C'est quoi un réseau Ça sert à quoi Avant toute chose il est indispensable de répondre à la question suivante qu'est-ce qu'un réseau On pourrait dé ?nir le mot réseau ? en une phrase Un réseau est un groupe d'entité 0 0
Description du projet centre baham 0 0
Appel d x27 offre les verts rdc sarl congo brazza 0 0
Aléas des sols Bahar Ramdane Professeur en Géotechnique Expert consultant en Gé 0 0
Ref N°: «WVN/ND/SCM/FY22/018-LOT7» Documents d'appel d'offres standard pour Pro 0 0
Exercice 2 Soit (X, T, µ) un espace mesur´ e o` u µ est une mesure de probabili 0 0
Demande de stage 2 ageim Rollis Ernest JIOFACK FEUZE AGEIM Cité logements rue BP Ouagadougou Burkina Faso E-mail rollisjiofack yahoo fr Rue de la science Ouagadougou Tel A Monsieur le Directeur Général de AGEIM Objet Demande de stage Monsieur le Directeur 0 0
  • 39
  • 0
  • 0
Afficher les détails des licences
Licence et utilisation
Gratuit pour un usage personnel Aucune attribution requise
Partager