Langage c
Résolu/Fermé
midmad
-
24 nov. 2007 à 23:03
fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 - 24 nov. 2007 à 23:15
fiddy Messages postés 11069 Date d'inscription samedi 5 mai 2007 Statut Contributeur Dernière intervention 23 avril 2022 - 24 nov. 2007 à 23:15
A voir également:
- Langage c
- D langage c ✓ - Forum C
- Langage ascii - Guide
- Et en langage c - Astuces et Solutions
- Langage linux - Forum Linux / Unix
- Mini projet en langage c corrigé - Forum C
1 réponse
fiddy
Messages postés
11069
Date d'inscription
samedi 5 mai 2007
Statut
Contributeur
Dernière intervention
23 avril 2022
1 816
24 nov. 2007 à 23:15
24 nov. 2007 à 23:15
Salut
Cordialement
#include <stdio.h>
int main(){
int buffer[255];
int i=0;
*buffer=-1;
do{
scanf("%d",buffer+i);
}while(buffer[i++]!=0);
/*affichage du buffer*/
i=0;
while(buffer[i]!=0)
printf("%d ",buffer[i++]);
puts("");
return 0;
}
Cordialement