Skip to content
Snippets Groups Projects
Verified Commit 19dbc9fd authored by orestis.malaspin's avatar orestis.malaspin
Browse files

Added line

parent 7529c994
No related branches found
No related tags found
No related merge requests found
Pipeline #30365 passed
...@@ -49,6 +49,8 @@ p = &m; // erreur de compilation. ...@@ -49,6 +49,8 @@ p = &m; // erreur de compilation.
# Rappel: pointeurs et fonction # Rappel: pointeurs et fonction
## Faites un dessin de ce qui se passe en mémoire
```C ```C
void foo(int *a) { void foo(int *a) {
*a = 3; *a = 3;
...@@ -58,10 +60,8 @@ void bar(int a) { ...@@ -58,10 +60,8 @@ void bar(int a) {
} }
int main() { int main() {
int a = 1; int a = 1;
foo(&a); foo(&a); // Que vaut a?
// Ici a vaut 3 bar(a); // Que vaut a?
bar(a);
// Ici a vaut toujours 3
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment