Début OS
Cette révision appartient à :
Parent
71db845fa7
révision
422336b4aa
2 fichiers modifiés avec 16 ajouts et 12 suppressions
25
C/rappels.md
25
C/rappels.md
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Pointeurs
|
||||
|
||||
```
|
||||
```C
|
||||
struct S {
|
||||
int x;
|
||||
int y
|
||||
|
|
@ -17,7 +17,7 @@ p -> x
|
|||
|
||||
Déclarer
|
||||
|
||||
```
|
||||
```C
|
||||
char* ch = "OULA" // Ici on a une variable ch en mémoire qui est l'adresse d'un endroit en mémoire ReadOnly ou il y est écrit "OULA"
|
||||
|
||||
charch[]="OULA" // Ici on déclare la constante OULA en tant que variable locale.
|
||||
|
|
@ -35,7 +35,7 @@ charch[]="OULA" // Ici on déclare la constante OULA en tant que variable locale
|
|||
|
||||
Pour une fonction, si on souhaite modifier la valeur d'une variable en la passant en argument d'une fonction, il est impératif de passer l'adresse de la variable en argument et non pas sa valeur.
|
||||
|
||||
```
|
||||
```C
|
||||
void fonction(int i){ i++;}
|
||||
int j=5;
|
||||
fonction(j);
|
||||
|
|
@ -50,7 +50,7 @@ printf("%d",j); // OUTPUT : 6;
|
|||
```
|
||||
|
||||
# printf
|
||||
```
|
||||
```C
|
||||
%d // int
|
||||
%f // float
|
||||
%c // char
|
||||
|
|
@ -64,7 +64,7 @@ printf("%d, %c, %s", i , ch , str);
|
|||
|
||||
# Structures
|
||||
##
|
||||
```
|
||||
```C
|
||||
struct s {
|
||||
int e;
|
||||
char ch[4];
|
||||
|
|
@ -81,12 +81,13 @@ typedef struct {
|
|||
```
|
||||
# Opérateurs Logiques
|
||||
|
||||
```
|
||||
& logique bits à bits
|
||||
&& bits à bits
|
||||
```C
|
||||
& // logique bits à bits
|
||||
&& // bits à bits
|
||||
|
||||
| OU Logique Bitsà bits
|
||||
|| OU Logique
|
||||
| // OU Logique Bitsà bits
|
||||
|| // OU Logique
|
||||
|
||||
^ OU bit à bit exclusif
|
||||
^^ OU Bits à bit
|
||||
^ // OU bit à bit exclusif
|
||||
^^ // OU Bits à bit
|
||||
```
|
||||
3
OS/rappels.md
Fichier normal
3
OS/rappels.md
Fichier normal
|
|
@ -0,0 +1,3 @@
|
|||
# Systèmes d'exploitation
|
||||
## Concepts et implémentations appliqués à l'architecture Intelx86
|
||||
Stéphane Duverger, Airbus Group Innovations
|
||||
Chargement…
Référencer dans un nouveau ticket