Debut TP14

This commit is contained in:
2023-10-17 17:24:54 +02:00
parent 598eb8417e
commit a1740b85f6
8 changed files with 62 additions and 4 deletions

17
DEV1.1/TP14/initiale.c Normal file
View File

@@ -0,0 +1,17 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int main(int argc,char** argv) {
char mot[20];
if (argc > 1){
mot[20]=*argv[1];
mot[20]='\0';
printf("%c\n",(mot[1]));
}
else
puts("aucun argument !");
return EXIT_SUCCESS;
}