Linked List - Implementation in C/C++

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 577

  • @brendanmilton5025
    @brendanmilton5025 10 ปีที่แล้ว +824

    your videos are the only ones on youtube that seem to explain the concepts of linked lists and pointers in a clear and concise way. invaluable help. thank you so much.

    • @mycodeschool
      @mycodeschool  10 ปีที่แล้ว +55

      Brendan Milton You are most welcome :)

    • @dyslexicunt
      @dyslexicunt 9 ปีที่แล้ว +1

      ***** The second line doesn't make any sense. Firstly, you're trying to cast the return value of malloc (a void pointer) to a Node. You can't do that, they're different types. In C++ you need to cast it to a pointer of type Node* (as the first line does). This cast is not required if you're in vanilla C.
      Even if the right hand side was correct, you then would be trying to assign a pointer to a Node * to a Node. You can't do that for the same reason as above, they're two conflicting types.
      The whole point (lol) of malloc is that it returns to you a pointer to some memory out on the heap and therefore you can only ever assign the return value of malloc, to a pointer.

    • @pradeepyadav1005
      @pradeepyadav1005 9 ปีที่แล้ว

      +Gaming News
      Sir I think ,
      First statement is points to a void pointer variable allocated by dynamic memory allocation. but
      Second statement is a simple variable which is allocated by dynamic memory allocation and converted in node variable by using explicit type conversion.

    • @bansalashu1613
      @bansalashu1613 8 ปีที่แล้ว +16

      seriously dude you are a gift to us noob coders

    • @deepthiprakash715
      @deepthiprakash715 8 ปีที่แล้ว +8

      I agree!! text books and reference books are just way too complicated for beginners to understand. he's amazing

  • @robertmanigault625
    @robertmanigault625 2 ปีที่แล้ว +7

    I recently discovered your videos. Many years ago I was a programmer with weak knowledge of data structures. Now, I've decided to gain a firm understanding of them. I've viewed several videos and am currently reading a book on the subject matter. You have managed to explain data structures so clearly that the seem so easy to understand. You are an outstanding teacher. Thanks for your videos.

  • @rhysrittgers2183
    @rhysrittgers2183 8 หลายเดือนก่อน +1

    I have been trying to understand the actual coding concept of linked lists for about a week. I searched through countless videos, help forums, asked friends and this video right here was the most informative, easy to grasp explanation I have seen. Thank you more than you know

  • @MrValentas
    @MrValentas 10 ปีที่แล้ว +161

    I advise you to go on career teaching people coding and computer science. You would be winning top awards each year. Never in my life did I see better explanations than you videos. Your playlist only on Data Structures is worth at least 200 bucks as a course online :}

    • @mycodeschool
      @mycodeschool  10 ปีที่แล้ว +24

      Thanks a lot MrValentas :)

    • @amritaanshnarain7524
      @amritaanshnarain7524 3 ปีที่แล้ว +10

      He already is software engineer at Google

    • @Shubh4m15
      @Shubh4m15 3 ปีที่แล้ว

      @@amritaanshnarain7524 really ?

    • @prakharkhandelwal7513
      @prakharkhandelwal7513 3 ปีที่แล้ว

      @@Shubh4m15 Yes

    • @fcyare
      @fcyare 2 ปีที่แล้ว +1

      are you still a live after 8 years

  • @_Some_Random_Dude
    @_Some_Random_Dude 8 ปีที่แล้ว +53

    Sir, you just helped save my student backside, may whatever gods you worship give you money, children, whatever you want.
    Your lesson is the only one, that helped me understand the idea behind linked lists. I guess i'm too stupid for any other source.
    >.

  • @fazalimam143
    @fazalimam143 6 ปีที่แล้ว +4

    i dont know why people are disliking your videos really you teach linked list in a very simple way and explain all the things in it
    really mindblowing

  • @RaGa_BABA
    @RaGa_BABA 5 ปีที่แล้ว +13

    THIS IS GOLD..YOU DESERVE EVERY PENNY I GAVE TO MY COLLEGE

  • @20DoseOver
    @20DoseOver 8 ปีที่แล้ว +952

    i will be graduated from youtube instutue of technology!

    • @kazirahiv2157
      @kazirahiv2157 7 ปีที่แล้ว +5

      to create a structure type variable, you have to use "struct" keyword. If you have a structure named Node, and if you declare a Node structure type pointer variable and then store another Node type structure variable into that( link), you have to use pointer to "Node type pointer variable" to access the stored "Node type structure" contents in that particular pointer variable(in this case Node type pointer variable "link"). Hope you understand.

    • @MukeshRajput1982
      @MukeshRajput1982 7 ปีที่แล้ว +1

      www.mukeshrajput102.com/2017/12/write-c-programs-to-implement-double_11.html

    • @pswalia2u
      @pswalia2u 6 ปีที่แล้ว +1

      @Anonymous Darkhorse its nomenclature you can't change name for keywords

    • @alirezaghodsipoor2239
      @alirezaghodsipoor2239 5 ปีที่แล้ว +1

      :)))))))

    • @rando899
      @rando899 5 ปีที่แล้ว +4

      YIT yay

  • @cristianorozco5675
    @cristianorozco5675 6 ปีที่แล้ว +28

    These videos are really good! Thank you so much! You can't imagine how much I've struggled trying to learn linked lists.

  • @federicovergallo805
    @federicovergallo805 9 ปีที่แล้ว +292

    Indians IT teacher are the best in the world

    • @roushangiri4722
      @roushangiri4722 8 ปีที่แล้ว +1

      how do you know he's an IITian?

    • @pabloescobar2089
      @pabloescobar2089 8 ปีที่แล้ว +61

      Roushan Giri 'IT' :/

    • @goelsugam
      @goelsugam 7 ปีที่แล้ว +2

      He is Indian dude...check his facebook page (OR) just search on google.

    • @goelsugam
      @goelsugam 7 ปีที่แล้ว +15

      And IITian as well...Animesh Nayan (check on LinkedIn!!

    • @lightjoybliss
      @lightjoybliss 7 ปีที่แล้ว +4

      IIITian ,extra i..

  • @matthewbourgoin3629
    @matthewbourgoin3629 9 ปีที่แล้ว +1

    You are THE man, I have a linked list lab tomorrow and you have officially saved me. Thank you so very much. 5/5

  • @maroofkhatib3421
    @maroofkhatib3421 7 ปีที่แล้ว

    Man..... i dont know how to thank you ... tomorrow i have practical exams and i could've learnt the code by heart and went but this explanation was just awesome can never forget this !! superb !!

  • @jacksonkaib5122
    @jacksonkaib5122 4 ปีที่แล้ว +5

    Thank you for creating this content. I am a computer science major that spent my first two years of college developing skills related to the humanities. To do so, I lost track of the stem framework. I lost the assumed or assimilated aspect of what makes a cs major a cs major. This video triggered the neurons I needed it to :)

  • @shantanusingh6728
    @shantanusingh6728 4 ปีที่แล้ว +2

    One of the best explanation about Linked list on youtube...Thanks a lot @mycodeschool brother...
    P.S.: Who is watching this in 2020..?

  • @lindawisebear
    @lindawisebear 8 ปีที่แล้ว +3

    Sir, you explain things incredibly well,largely because your diagrams are so clear and colour-coded.Thank you!

  • @kouonzoko2878
    @kouonzoko2878 4 ปีที่แล้ว +1

    i have seen many coding videos on TH-cam.
    but this channel has always provided me with the best explanations so far.
    thanks a lot for all your amazing videos.

  • @aishwaryaratnam154
    @aishwaryaratnam154 6 ปีที่แล้ว

    Hey I first click the like button then I navigate to your content.man you are just beyond the boundary.life saviour for us.

  • @ratelslangen
    @ratelslangen 10 ปีที่แล้ว +104

    Wow, this is so much more easy to follow than my professors college.

    • @yangwang24
      @yangwang24 9 ปีที่แล้ว +6

      +ratelslangen yeah~the same feeling.

  • @LelnaG
    @LelnaG 4 ปีที่แล้ว

    This video literally saved my life. Absolutely NOBODY else explains code better than this channel! Bless you!!!

  • @aloysuskoh9238
    @aloysuskoh9238 7 ปีที่แล้ว +1

    THANK YOU SO MUCH! Your video is the only video that is short, concise and easy to understand! It is so much simpler to understand link list now! Thank you soo soo much :D

  • @atiajulia4028
    @atiajulia4028 6 ปีที่แล้ว +1

    Omg I read multiple explanations of linked lists online and in a text book but I still couldn't grasp the logic behind it. But you did it (also thanks to previous video about memory). You have a gift of explaining clearly and easily! Thank you!

  • @arontesfay2520
    @arontesfay2520 5 ปีที่แล้ว +5

    I went trough a couple of videos on this topic and this is by far the best imo

  • @pathapac
    @pathapac 9 ปีที่แล้ว +1

    Best lessons ever. Have understood data structures in its entirety. You are an amazing teacher..!!! thank you so much for your free lessons

  • @RezaGholamir
    @RezaGholamir 6 ปีที่แล้ว +1

    You are an amazing teacher!!! Your videos are better than reading many books...Thanks

  • @sourabhuwusingh
    @sourabhuwusingh 6 ปีที่แล้ว

    Sir you are the greatest coding teacher in the whole world !!
    You have helped me score 95 marks in c in my school! Thank you

  • @CodingKoleji
    @CodingKoleji 3 ปีที่แล้ว +1

    I really felt in love with this channel the contents are very helpful before I hate this course in my college but for now I am really excited about thank a lot man for helping learners for free

  • @mayurizarekar4339
    @mayurizarekar4339 8 ปีที่แล้ว +1

    thank you sooo much..it helped me a lot,my tutor had completely confused me.But your explanation seems so easy and simple.well done!

  • @ahmedifhaam7266
    @ahmedifhaam7266 3 ปีที่แล้ว

    Why..just why..cannot (ANY) university professor explain it as simply as this guy..thank you so much.. explaining coudnt be made simpler ugh, amazing dude, amazing

    • @amanahmed6057
      @amanahmed6057 3 ปีที่แล้ว

      because they don't want to

  • @ayusheetiwari4482
    @ayusheetiwari4482 9 ปีที่แล้ว +5

    These videos are damn usefull...u are one of the best teacher here in youtube i have come acrossed....keep up the work...there are many students how need videos like these to enhance there skill!!!
    Thanks A LOT for your help
    REGARDS
    AYUSHEE TIWARI(M.P)

  • @vikrant4666
    @vikrant4666 7 ปีที่แล้ว +261

    u'll get 5 star room in heaven for sure

    • @ZeeshanJamal23143124324
      @ZeeshanJamal23143124324 6 ปีที่แล้ว +24

      Even if he doesn't we are going to pray for him so he does.

    • @dishantnaik7431
      @dishantnaik7431 4 ปีที่แล้ว +2

      time bomber?

    • @nikolayandcards
      @nikolayandcards 4 ปีที่แล้ว +8

      Reading this just after reading he actually died.

    • @rahulsiddharth554
      @rahulsiddharth554 4 ปีที่แล้ว +3

      @@nikolayandcards wait actually

    • @shobhitrealm
      @shobhitrealm 3 ปีที่แล้ว +1

      @@rahulsiddharth554 yup in a car accident in 2014 or 2015 I guess. He was a IIIT Allahabad student.

  • @Darieee
    @Darieee 8 ปีที่แล้ว +3

    Thanks man ! Would've preffered keyboard written code, but, I do like the human touch :D Keep up the good work !

  • @nguaial8490
    @nguaial8490 8 ปีที่แล้ว +2

    You explain things so well especially coordinating between graphic presentation and the code.
    Thank you.

  • @mycodeschool
    @mycodeschool  11 ปีที่แล้ว +23

    Thanks a lot Shoib :)

  • @fuuny7967
    @fuuny7967 3 ปีที่แล้ว +2

    Sir, What can i say about your teaching the way you make concept so understable is amazing .., We 'll always be your grateful for this

  • @kamrulislam9767
    @kamrulislam9767 4 ปีที่แล้ว +1

    The best explanation I have seen ever. Thank you very much indeed.

  • @dineshgupta9899
    @dineshgupta9899 7 ปีที่แล้ว

    I remember studying this during my Engineering. Never understood the first time but 2-3rd time understood everything. Thanks for helping.

  • @deadelaus2611
    @deadelaus2611 3 ปีที่แล้ว +1

    This was amazingly helpful. You are clearly gifted at teaching these sorts of subjects. Thank you so much for these videos.

  • @videoreborn
    @videoreborn 10 ปีที่แล้ว +12

    Thank you so much! I would want more advanced application examples on linked list if possible! Love video lecture because I can pause and think and work on the understanding before moving on. Learning-on-demand!

  • @trevorg5938
    @trevorg5938 10 ปีที่แล้ว +1

    Very helpful, I was having trouble with traversing linked lists, and then finding the maximum value, but this helped a lot!

  • @alexmathai1998
    @alexmathai1998 8 ปีที่แล้ว

    You are a fantastic teacher! The best until now for me.

  • @stopthecap8810
    @stopthecap8810 2 ปีที่แล้ว

    this video is so useful, elaborate, thorough, and well explained that I use it just to brush up my memory of implementing a linked list in java lmao

  • @Se-pk8lg
    @Se-pk8lg 7 ปีที่แล้ว +1

    Thanks for explain the implementation in C/C++
    Other videos just explain the idea but not explain how the implementation looks like in C/C++.
    Thank you very much!

  • @mycodeschool
    @mycodeschool  11 ปีที่แล้ว +18

    Thanks for noticing Anthony :)

  • @dognip
    @dognip 2 ปีที่แล้ว

    These videos are literally gold bars.

  • @SaurabhSingh-kz5jv
    @SaurabhSingh-kz5jv 8 ปีที่แล้ว +1

    Your videos really hold a patient and bold explainations...
    Thanks for doing so.

  • @sanketkushwaha4238
    @sanketkushwaha4238 5 ปีที่แล้ว +1

    Thankyou so much for your hard work .. Really learnt a lot from your videos ..I wish I could have teachers like you in my college ..

  • @biswa12341234
    @biswa12341234 10 ปีที่แล้ว +1

    Really amazing Tutorial....clear precise and jargon free....and very clear concepts...Keep up

  • @Capenuke
    @Capenuke 9 ปีที่แล้ว +1

    Thank you. I wish my instructor would teach this way in a logical structure. Your videos are very valuable for a CS student. Well done.

  • @williamwu5798
    @williamwu5798 2 ปีที่แล้ว

    I am a computer science student and whenever I don't understand specific concepts in the data structure and algorithms, I will log in to my youtube account and then watch videos like this, finding that most of the professors in the university can only read PowerPoint which is lack of clarity and engagement. I do think that if professors can teach their students in this way, things will really get easier.

  • @tusharjajodia9077
    @tusharjajodia9077 3 ปีที่แล้ว +1

    Still the Best Video on the Platform For Sure

  • @hitikagahalot4549
    @hitikagahalot4549 3 ปีที่แล้ว +2

    Finally cleared all my doubts. Thank you so much sir!!!!

  • @BS_Mahlombe
    @BS_Mahlombe 8 ปีที่แล้ว +15

    wow you are the best .I appreciate and salute sir

  • @Gaggio23
    @Gaggio23 9 ปีที่แล้ว +2

    Great job with these videos, you explain things really well. Keep up the good work!

  • @vatikaprasad
    @vatikaprasad 7 ปีที่แล้ว

    you just got one more subscriber! Your words are golden. If possible, please makes tutorial videos on android development.

  • @moumitachakrabortyswarno3110
    @moumitachakrabortyswarno3110 3 ปีที่แล้ว

    this series is a gem...respect u sir

  • @semimathi6018
    @semimathi6018 5 ปีที่แล้ว +1

    its actually very easy but only when its taught by a good teacher! Thank you so much, was very easy to unterstand!

  • @GagandeepSingh-tl7zg
    @GagandeepSingh-tl7zg 4 ปีที่แล้ว +14

    For those looking for java implementation. This can be converted easily to a generic implementation.
    public class LinkedList {
    private final Node head;
    public LinkedList() {
    head = new Node();
    }
    // 1. Insert data.
    public void add(int data) {
    Node address = head;
    while(address.next != null) {
    address = address.next;
    }
    Node newNode = new Node();
    address.next = newNode;
    newNode.data = data;
    }
    // 2. Traversal
    public void print() {
    Node address = head;
    if(address.next == null) {
    System.out.println("Empty");
    return;
    }
    while(address.next != null) {
    System.out.println(address.next.data);
    address = address.next;
    }
    }
    /**
    * Private static inner class to create a node for the linked list.
    */
    private static class Node {
    private int data;
    private Node next;
    }
    }

  • @055muditsingh7
    @055muditsingh7 4 ปีที่แล้ว

    You have clear my doubts on array and linked list , thanks a lot for making a video.

  • @sudhakarjha75
    @sudhakarjha75 2 ปีที่แล้ว +1

    What a beautiful explanation ❤️❤️❤️❤️

  • @conquer_knowledge6608
    @conquer_knowledge6608 3 ปีที่แล้ว +1

    this is 2021 ..but these videos are epic and unique...good videos sir

  • @akshaykr7441
    @akshaykr7441 4 ปีที่แล้ว

    wow!!!. i am just speechless,amazing content you have,you're superb dude!!!.

  • @ishufaciasa7231
    @ishufaciasa7231 6 ปีที่แล้ว +3

    You deserve an Oscar award for making ME understand what this nonsense is🙏

  • @baileydanielle3885
    @baileydanielle3885 6 ปีที่แล้ว

    GOD BLESS THIS VIDEO. My Computer Science grade thanks you endlessly.

  • @baibhavvikas1767
    @baibhavvikas1767 2 ปีที่แล้ว

    thanks for talking about new node and malloc coz i didn't know about the new node feature of c++

  • @DavidPrifti1
    @DavidPrifti1 5 ปีที่แล้ว +1

    Inside the while loop at 11:17 shouldn't the condition just be temp1 != NULL. temp1->link points to the link that the next node stores. So if the linked list contains only the head and one node temp1->link is NULL because it is the last node and it will not go inside the while loop. So if we want to print the values inside the while loop it won't print anything in this case. Can anyone explain to me?

  • @akashs2514
    @akashs2514 7 ปีที่แล้ว +2

    Amazing channel for programming. You should post more videos....

  • @ukeez01
    @ukeez01 3 ปีที่แล้ว +1

    you make hard topic too smooth..... Thanks Sir

  • @nazmussaqib2435
    @nazmussaqib2435 8 ปีที่แล้ว +4

    Great work :) Thanks a lot :) you r just awesome man :) u saved my 16500taka because I don't need to retake this course :D :D

  • @manojpandey7517
    @manojpandey7517 4 ปีที่แล้ว

    at 11:02 to insert the newly created node to our linked list, instead of traversing the whole list from start to reach the last node, wouldn't it be more efficient if we could have just created a new pointer p and equate it to the temp (note that temp was initially pointing to the 2nd node before we modified it) so that p now points to the last node?

  • @annshu0641
    @annshu0641 11 ปีที่แล้ว +1

    THE WAY U FOLLOW FOR TEACHING US is .......oh i cant say!!!!!!!THANKS ALOT..

  • @nilberthsouza8102
    @nilberthsouza8102 6 ปีที่แล้ว

    I Learned a lot here. I came by codeDojo video about data structures

  • @liviobiondo2342
    @liviobiondo2342 9 ปีที่แล้ว +483

    Why are you in the comment section? Go back to study!!

    • @paulsmith8293
      @paulsmith8293 9 ปีที่แล้ว +10

      +Livio Biondo lol , nice one :)

    • @BangMaster96
      @BangMaster96 7 ปีที่แล้ว +3

      ahhahah lol thanks for reminding me

    • @Jemmeh
      @Jemmeh 7 ปีที่แล้ว +4

      UGH FINE

    • @aswahd
      @aswahd 5 ปีที่แล้ว

      Thanks haha

    • @anondoggo
      @anondoggo 5 ปีที่แล้ว

      Thanks!

  • @ayushidutt8246
    @ayushidutt8246 4 ปีที่แล้ว +4

    Hi, thank you for this wonderful playlist to help programmers in their struggle to grasp these basic concepts !
    Also, another thing, would it not be better to keep an "end" pointer at the end of the linked list each time we added an element at the end. That way it would be faster to add element at the end of the list..

    • @himanshutrivedi4948
      @himanshutrivedi4948 4 ปีที่แล้ว

      Hey I am not able to code this on my IDE can you please please reply me by sending the code to me in the reply section to this comment ?

  • @shreyassule8526
    @shreyassule8526 7 ปีที่แล้ว +1

    Thanks a lot. I have been following your videos for quite some time, and they have been the best help so far. All the concepts are explained in such a simple and easy to follow manner. With Linked List, is it possible for you to do it java for once. Any help or suggestions are much appreciated.

  • @Adasko000
    @Adasko000 11 ปีที่แล้ว +1

    Wow, thats a piece of a great teaching work. Thanks a lot, mate!
    **subscribes the whole channel**

  • @gabrielferrin
    @gabrielferrin 7 ปีที่แล้ว

    Your set of videos are the best. I'm studying these concepts now, but it's hard for me to understand the use of these in real life. Am I ever actually going to use these concepts to develop software in the real world??

  • @globalmacro2817
    @globalmacro2817 9 ปีที่แล้ว +1

    Thank you so much for the tutorial! clearly you explained better than my prof.

  • @chrome364
    @chrome364 10 ปีที่แล้ว +2

    Your videos are so helpfull. I learned a lot thanks to you. Thanks a lot !

  • @yustinayasin5539
    @yustinayasin5539 4 ปีที่แล้ว +1

    hey guys i tried to write these code in my computer. I use code blocks. And there is an error in the line Node* link; says that Node is uknown type name. But he already define in the struct Node right?

  • @stephaniec6873
    @stephaniec6873 7 ปีที่แล้ว

    Very well explained. I wish I knew it was in C/C++ before I began the video playlist, though.

  • @_bihim
    @_bihim 8 ปีที่แล้ว

    Hats off to you!!! This video is really very much helpful to me.

  • @md.abuashraf6123
    @md.abuashraf6123 9 ปีที่แล้ว

    best video ever for data structure using c++

  • @vijayank3207
    @vijayank3207 9 ปีที่แล้ว +1

    thank you so much for uploading the videos .I clearly understanding what is happening back to the program.it is realy rice

  • @tech-support5309
    @tech-support5309 8 ปีที่แล้ว +1

    Awesome man..I really very thankful to you for this bunch of tutorials. Thank's man. :)

  • @EntertainerOnline
    @EntertainerOnline 9 ปีที่แล้ว

    Sir,why did you put braces after node at 8:58(when you were explaining how to write in c++ instead of malloc)

  • @rayhanulislam1675
    @rayhanulislam1675 5 ปีที่แล้ว +11

    i am getting confused about the syntax between your use of C & C++ .

  • @KiranTammineni106
    @KiranTammineni106 11 ปีที่แล้ว

    In this lesson you said the address of the head node is never modified, but we are actually modifying the head node to temp right.
    temp->data=2;
    temp>link=null;
    A = temp;
    Now the head node is pointed to the first block of memory

  • @nazmussalehin7512
    @nazmussalehin7512 8 ปีที่แล้ว +1

    It will be great if you publish a series only on different types of algorithm, implement them and show their application

  • @vijaypalgodara1861
    @vijaypalgodara1861 6 ปีที่แล้ว

    best ever lectures i had thankyou

  • @tejasjoshi9269
    @tejasjoshi9269 7 ปีที่แล้ว +1

    hey, this video was very helpful for me to understand the syntactic flow of linked list and pointers. But I think there is a huge flaw in the step temp1->link = temp. Temp is pointing to the latest malloced memory, but when traversal, temp1 will stop a node before the final node, the node(can say node-1) whose link is NULL, that point where we want to stop. But this step will assign pointer of the last node not the second last one. If you think I am missing something and maybe wrong, please clarify. Thank you.

  • @EeicLi
    @EeicLi 4 ปีที่แล้ว +1

    I am a bit confused at what is the node*? I know it means the pointer to node, so does node* mean “a pointer variable which stores the address of the next node”?

  • @GalinaMalakhova
    @GalinaMalakhova 4 ปีที่แล้ว +1

    Thank you, so clear and to the point, explains the important things!

  • @sreekrishnapriyakuppa408
    @sreekrishnapriyakuppa408 10 ปีที่แล้ว +2

    Hi, great vid.. I got i doubt here. Could we have used A directly instead of creating a temp varibale. Like the following instruction:
    A= (node*)malloc(sizeof(node));
    before allocating values to the head node.

  • @nejmeddinne
    @nejmeddinne 7 ปีที่แล้ว

    Thank you so much sir . this video really helped me to understand the linked list .

  • @tarunkr.9041
    @tarunkr.9041 6 ปีที่แล้ว

    best videos lectures in the universe

  • @prasadkumbhar6670
    @prasadkumbhar6670 8 ปีที่แล้ว +8

    HEY my code school your tutorials are excellent. I have one doubt in this tutorial where we create a new temp1 variable. When we want to link the nodes why can we write
    temp->link=100. What is the purpose of creating the node*temp1 and how does the linking process take place with temp1. I am getting a little confuse. Please help

    • @naveen1837
      @naveen1837 3 ปีที่แล้ว

      temp already points to the address 100. so writing temp ->link = 100 wiil write 100 in the link of the last node which isn't correct

  • @lordguthix1
    @lordguthix1 9 ปีที่แล้ว +1

    Very usefull!! thank you so much for explaining in an easy manner.

  • @syedasadullah7025
    @syedasadullah7025 6 ปีที่แล้ว +13

    nice job sir...
    love form Pakistan

  • @ahmadibrahim3969
    @ahmadibrahim3969 ปีที่แล้ว

    This is a very clear explanation thanks a lot.

  • @ts.wizard
    @ts.wizard 7 ปีที่แล้ว

    This video helped a lot! Thanks. And one suggestion, the pointer "temp" should be deleted.