This commit is contained in:
Vieira
2021-11-16 15:32:33 +01:00
parent 63c27b25d6
commit 237a98d87b
31 changed files with 1223 additions and 4 deletions

BIN
Dev1.1/Debogueur/doubleur Executable file

Binary file not shown.

View File

@@ -0,0 +1,16 @@
#include <stdlib.h>
#include <stdio.h>
int somme(int n, int m) {
return n+m;
}
int main(void) {
int valeur;
int * p = &valeur;
printf("Entrez un entier : ");
scanf("%d", p);
printf("Le double vaut %d\n", somme(*p, *p));
return EXIT_SUCCESS;
}

BIN
Dev1.1/Debogueur/envers Executable file

Binary file not shown.

20
Dev1.1/Debogueur/envers.c Normal file
View File

@@ -0,0 +1,20 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
void envers(const char texte[]) {
unsigned position;
for(position = strlen(texte); position > 0 ; position--) {
printf("%c", texte[position-2]);
}
printf("\n");
}
int main(int argc, char** argv) {
if (argc < 2) {
printf("usage : %s <texte>\n", argv[0]);
return EXIT_FAILURE;
}
envers(argv[1]);
return EXIT_SUCCESS;
}

View File