Add after an element in a linked list

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Brother you are a hero. I have an examen of C/C++ and basically linked lists are the hardest topic we've seen and it was so confusing. You really helped thank you.

gavinvg
Автор

This is the Best explanation of the topic also it'd be great be if you put sorting videos

ayushmanpraxri
Автор

I think you should make a video for adding node at specific position because passing ->next->next->next->... in the main function is very cumbersome

Safwan.Hossain
Автор

Hi! Can you explain again why we only pass a singular pointer and not a double pointer? and why do we have to pass a double pointer into the function when adding to the beginning?

AnhLe-uv
Автор

this is a little easier for me to understand
```
void linkedlist_insert(Node* predecessor, int x) {

Node* successor = predecessor->next;

Node* node = malloc(sizeof(Node));
if (node == NULL) {
exit(4);
}
node->x = x;
node->next = successor;

predecessor->next = node;
}
```

michalbotor
Автор

How do you setup microsoft visual to use c coding idk how

unknow