16 lines
265 B
C
16 lines
265 B
C
|
#include <stdlib.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int somme(int n, int m) {
|
||
|
return n+m;
|
||
|
}
|
||
|
|
||
|
int main(void) {
|
||
|
int valeur;
|
||
|
int* p = calloc(1,4);
|
||
|
printf("Entrez un entier : ");
|
||
|
scanf("%d", p);
|
||
|
|
||
|
printf("Le double vaut %d\n", somme(*p, *p));
|
||
|
return EXIT_SUCCESS;
|
||
|
}
|