This commit is contained in:
EmmanuelTiamzon
2025-09-30 09:43:41 +02:00
parent f7de13bc2a
commit 7019a3b7ea
176 changed files with 9458 additions and 149 deletions

View File

@@ -1,17 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main(int argc, char *argv[]) {
long int x, y;
ldiv_t result;
sscanf(argv[1], "%ld", &x);
sscanf(argv[2], "%ld", &y);
result = ldiv(x, y);
printf("quotient : %ld\n", result.quot);
printf("reste : %ld\n", result.rem);
return EXIT_SUCCESS;
}

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 = NULL;
printf("Entrez un entier : ");
scanf("%d", p);
printf("Le double vaut %d\n", somme(*p, *p));
return EXIT_SUCCESS;
}

View File

@@ -1,6 +1,14 @@
#include <stdio.h>
#include <stdlib.h>
typedef struct {
char tab[50];
int indice_debut;
int indice_fin;
int taille;
} pile;
struct maillon_s {
char valeurs;
struct maillon_s* suivant;