2 Commits

Author SHA1 Message Date
lucas 7cf7b13692 Téléverser les fichiers vers "/" 2026-05-11 15:52:15 +00:00
lucas f68782021b zd 2026-02-09 03:44:20 +01:00
3 changed files with 2755 additions and 28 deletions
File diff suppressed because one or more lines are too long
-28
View File
@@ -1,28 +0,0 @@
#include <stdlib.h>
#include <stdio.h>
int *division(int input, int by)
{
//int value = input / by;
if (by != 0){
//int value = input / by;
}
else
return
//int value = 0;
int *ptr = &value;
return ptr;
}
int main(void)
{
int *ptr1 = division(42, 2);
printf("the 1st value is %d\n", *ptr1);
int *ptr2 = division(12, 0);
printf("the 2nd value is %d\n", *ptr2);
free(ptr1);
free(ptr2);
return EXIT_SUCCESS;
}
BIN
View File
Binary file not shown.