void test(char *str2) {
*str2 = "bbbb";
}
int main(void) {
char *str1="aaaa";
test(str1);
return EXIT_SUCCESS;
}
str1*
and str2*
point to the same address why I can not change the value of str1 inside the test function?
thanks all