我的字符指针指向一些内存说“Hello world”,我想将它与其他指针进行比较,然后想做 strcpy。我坐在可能与 char *
char *A ="hello"
char *B ="";
strcmp(A,B); // this compares correctly because B points to diff string
strcpy(B,A); // will this statment copies the string alone or both will point to same memory