APL/APL1.1/Dev1.1/Debogueur/doubleur.c

17 lines
260 B
C
Raw Normal View History

2021-11-16 15:32:33 +01:00
#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;
}