Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
 
void function(char *p1, char *p2)
{
 
p1 = "hello";
p2 = "salut";
 
p1[1] = p2[1];
 
printf("%s", p1);
}
 
int main()
{
function("hello", "salut");
}
Normalement on devrait avoir en sortie:

hallo


Mais j'ai un "bus error";