Debut TP14
This commit is contained in:
17
DEV1.1/TP14/initiale.c
Normal file
17
DEV1.1/TP14/initiale.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user