总结一下遇到的关于char *p、char p[]和字符串的题目: 例一:(指针的指针) 1 void getmemory(char **p) 2 { 3 p = (char *)malloc(100); //p应该是*p,因为这里是对传入的二重指针所指向的内容分配空间,而不是二重指针的地址, 4 Read More
posted @ 2019-05-07 18:52 Brickert Views(1739) Comments(0) Diggs(0) Edit