1 2 3 4 5 6 7 8 9 10 11 12 13 14
#include <stdio.h> void apple(char *str) { str = "def"; } int main(void) { char s[] = "abc"; apple(s); printf("%s\n",s); return 0; }
1
abc