AJout des fichiers des sances precedentes

This commit is contained in:
Menouer MELIANI 2022-09-12 15:51:58 +02:00
parent 6f2df16f65
commit 2bef7749e5
10 changed files with 1947 additions and 0 deletions

10
DEV1.1/TP01/TP01 Normal file
View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

BIN
DEV1.1/TP01/executable Executable file

Binary file not shown.

1854
DEV1.1/TP01/intermediaire.i Normal file

File diff suppressed because it is too large Load Diff

10
DEV1.1/TP01/salut.c Normal file
View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

10
DEV1.1/TP01/~salut.c Normal file
View File

@ -0,0 +1,10 @@
/* premier programme */
#include <stdlib.h>
#include <stdio.h>
int main(void) {
printf("Hello World!\n");
return EXIT_SUCCESS;
}

31
DEV1.1/TP02/#décalage# Normal file
View File

@ -0,0 +1,31 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n = 35;
printf("%d", (n>>7)&1);
printf("%d", (n>>6)&1);
printf("%d", (n>>5)&1);
printf("%d", (n>>4)&1);
printf("%d", (n>>3)&1);
printf("%d", (n>>2)&1);
printf("%d", (n>>1)&1);
printf("%d", (n>>7)&1);
printf("%d", (n>>6)&1);
printf("%d", (n>>5)&1);
printf("%d", (n>>4)&1);
printf("%d", (n>>3)&1);
printf("%d", (n>>2)&1);
printf("%d", (n>>1)&1);
printf("%d", (n>>7)&1);
printf("%d", (n>>6)&1);
printf("%d", (n>>5)&1);
printf("%d", (n>>4)&1);
printf("%d", (n>>3)&1);
printf("%d", (n>>2)&1);
printf("%d", (n>>1)&1);
printf("%d", n&1);
printf("\n");
return EXIT_SUCCESS;
}
000100011

9
DEV1.1/TP02/base.c Normal file
View File

@ -0,0 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("toto%d\n", 72);
printf("%d\n", 0110);
printf("%d\n", 0x48);
return EXIT_SUCCESS;
}

17
DEV1.1/TP02/décalage Normal file
View File

@ -0,0 +1,17 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
int n = 12;
printf("%d", (n>>7)&1);
printf("%d", (n>>6)&1);
printf("%d", (n>>5)&1);
printf("%d", (n>>4)&1);
printf("%d", (n>>3)&1);
printf("%d", (n>>2)&1);
printf("%d", (n>>1)&1);
printf("%d", n&1);
printf("\n");
return EXIT_SUCCESS;
}

View File

@ -0,0 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
int main(void) {
printf("%d\n" , 73 << 4);
}

BIN
DEV1.1/TP02/valeurafond Executable file

Binary file not shown.