这就是我想要的视觉效果:
1->2->3->4 to 2->3->4 (Basically unlink 1)
struct Courses{
char *courseName;
int creditValue;
Courses *next;
};Courses;
struct Student{
char *name;
int age;
Courses *list; //First course (node)
}Student;
Student student1;
Courses curr = student1->list
curr = curr->next; <----- The statement I am questioning
我想检查的是curr = curr->next;
上面的行是否等同于使节点1成为节点1指向的节点2.如果我错了,请纠正我。