当我试图在两个不同的地方使用相同的函数时,我得到了一个非常奇怪的分段错误。printTVNode(headTVNode); /* Works fine here */
TopicEmmissionsEmmissionPointer currentEmmission; EventPointer topicSubjects = NUL
之后,我想将指针p指向NULL。问题是,在我这样做之后,指针q也指向NULL,但是我希望他继续指向初始的入口。有办法这样做吗?//pointer "p" now points to "a" q = p; //pointer "q" points to "a" as well
*p = NULL; //pointer "p" points to