mình có 1 list với pointer next và prev. Giờ mình viết 1 function pop để xóa member đầu tiên của list
void pop(struct studenten *student){
student=student->next;
free(student->prev);
student->pre=NULL;
}
nhưng mà nó lại ko hoạt động, con trỏ student của mình vẫn giữ nguyên. Mình thử với function trả về kiểu con trỏ thì lại hoạt động
struct studenten *pop(struct studenten *student){
student->next->prev=NULL
return student->next;
}
student=pop(student);
nên
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?