Creating the Node of a Single Linked List

Поділитися
Вставка
  • Опубліковано 15 гру 2024

КОМЕНТАРІ • 200

  • @liuqing1995
    @liuqing1995 3 роки тому +233

    Learning programming and computer science were difficult, at least not intuitive. Now it has become a joyful activity with the help of Neso Academy. Thank you for doing so to help millions of students in the world!

  • @emanuelecapone242
    @emanuelecapone242 10 місяців тому +29

    You have no idea how much you are helping me. I am a student at Politecnico di Milano in Italy and on the 13th i have a C programming exam and man the way my professor teached us linked lists is so awful, i've been watching tons of videos and you are the first one making me really understand them

  • @coolbrotherf127
    @coolbrotherf127 2 роки тому +46

    For anyone who is doing this in C++, you can use dynamic memory allocation instead to be able to easily manage procedurally created nodes. Just don't forget to delete your node's memory properly when it leaves the list to not make a memory leak.

  • @servantofthelord8147
    @servantofthelord8147 4 роки тому +46

    They say the smartest people know how to simplify the most complex topics to the point where a 5 year old can understand it. Thank you very much sir. You have the clearest tutorial on pointers on the internet! God bless you.

    • @AzmeerFarhan-l4u
      @AzmeerFarhan-l4u 5 місяців тому +1

      Are you 5 year old 😮😮😮?

    • @servantofthelord8147
      @servantofthelord8147 5 місяців тому +1

      @@AzmeerFarhan-l4u 😂😂😂😂 Haha, no it's just a saying. Although that'd be crazy if a 5 year old was watching a video on singly linked list

    • @NoobDerric
      @NoobDerric Місяць тому

      @@servantofthelord8147 i am an 8 y/o and curious about computer programming, so its almost a month that i started learning data structure 😀

    • @meow_bili
      @meow_bili 10 днів тому

      @@AzmeerFarhan-l4u no brother you are 😮😮😮😮😮😮

  • @busrairembircan6882
    @busrairembircan6882 4 роки тому +32

    Your videos and expressions help me understand the essence of the subject.
    Until now, I have never met someone like you who gave information gradually and left no questions in my mind. Thank you very much for accompanying me on my school life sir .

  • @m.laxminarayanreddy
    @m.laxminarayanreddy 2 роки тому +6

    I saw many tutorial videos but no one can be able to teach like you. Thank you for making me understand.

  • @sakshirajput9427
    @sakshirajput9427 4 роки тому +92

    Thank you so much, sir the concepts that I didn't get on Coursera as well in my online academic classes, I am getting it here easily , grateful for this.

  • @jamesthefirst_8147
    @jamesthefirst_8147 9 місяців тому +2

    This makes so much sense now. My professon in uni knows a lot but he seems abolutely not capable of comunicating that knowledge to us. The way he explained linked lists was aaawful. Been strugling with it for days now. Thanks for the great vid :)

  • @dualia-s74m
    @dualia-s74m 4 роки тому +10

    finally a summarized yet detailed tutorial of linked list. thank you bro!

  • @kmkamruzzaman6256
    @kmkamruzzaman6256 3 роки тому +11

    100 times better than my professor . Thanks mate

  • @giuliofrancis8524
    @giuliofrancis8524 4 роки тому +279

    I can no longer watch programming tutorials without a proper Indian accent

    • @maccharrr7733
      @maccharrr7733 Рік тому +12

      Yeahh! Most of them are Indians.

    • @mrsparkly
      @mrsparkly 8 місяців тому +12

      Indians are experts in this.

    • @mohimohi519
      @mohimohi519 7 місяців тому

      Correction, they are just a lot, nothing more​@@mrsparkly

    • @kiranmayi3196
      @kiranmayi3196 3 місяці тому +1

      True😊

    • @sedoxly9633
      @sedoxly9633 28 днів тому

      I agree

  • @MissSukriti-r5n
    @MissSukriti-r5n Рік тому +11

    Such a great explanation with clarification at each point, pretty much what we require. Thank you for all your hard work you deserve so much more also thanks for using C. Much support and love NESO academy. Thanks a ton 😊

  • @perelium-x
    @perelium-x 2 роки тому +21

    We can also do this
    struct node* head = malloc(sizeof(struct node));
    straight away declare head and allocate a memory to it. Works fine

  • @manaskulkarni8610
    @manaskulkarni8610 4 роки тому +11

    It's very helpful to understand concepts 🔥🔥 thanks a lot

  • @gamingblastisk418
    @gamingblastisk418 3 роки тому +1

    After going to more than 3 youtube channels i am here and i am happy that i have found your channel nice explanation

  • @osamaabdulqader2869
    @osamaabdulqader2869 Рік тому +1

    Thanks neso academy for uploading it now I'll ace my dsa exam smoothly😊

  • @swathirao6499
    @swathirao6499 4 роки тому +6

    Aww❤️❤️😍 atlast ds here I'm eagerly waited for ds lectures..thankyou very much sir🙏🙏 pls upload full ds topics 🙏🙏

  • @technicallytechnical1
    @technicallytechnical1 Рік тому +8

    I am an NCC cadet and I miss classes becoz of it thanks to neso academy for saving time ☺️

  • @shrutipardeshi7816
    @shrutipardeshi7816 3 роки тому +1

    Neso acedemy is just like hero for engineering student 🙏🙏

  • @souravmukherjee7508
    @souravmukherjee7508 4 роки тому +12

    Sir your way of teaching is very helpful to us. Please try to upload all the videos of DS more faster. We are eagerly waiting for you & entirely depending on your channel. Thank you 😊

  • @hasanbinzaker5381
    @hasanbinzaker5381 4 роки тому +3

    Just Awesome😍...May Allah(SWT) help you now and hereafter...

  • @rudra_anand
    @rudra_anand Рік тому +2

    You explained it very well. Thank you!!

  • @harziraaa
    @harziraaa 2 роки тому +3

    This is a very good concept explanation! I managed to understand about the linked list in basic perfectly. Thank you so much and done subscribed!!!!!

  • @premanand_ji_ladli-LaL
    @premanand_ji_ladli-LaL 2 місяці тому +1

    amazing explaination , thank you very much

  • @rithiksaviog21ec18
    @rithiksaviog21ec18 2 роки тому +2

    So we can also write the linking pointer variable in the struct node like *link = struct node; ???

  • @vaibhavbadhe4996
    @vaibhavbadhe4996 3 роки тому +2

    Just simply awesome teaching 🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥🙏

  • @Salverse05
    @Salverse05 Рік тому

    This is so helpful. Now I think i will be able to solve programs in my practical exam

  • @DipakChakraborty033
    @DipakChakraborty033 Рік тому

    Very clear and compact representation on such an Important Topic.

  • @preethammm4660
    @preethammm4660 11 місяців тому

    No words to describe ur teaching it's so useful tq very much for your efforts 😊

  • @green-coder
    @green-coder Рік тому +1

    thank you so much, very clear, but why we didn't check if the head have an enough memory (NULL or not) before print the data

  • @pulastyadas3351
    @pulastyadas3351 4 роки тому +1

    Best tutorial for Linked list

  • @Shubhankar-p7g
    @Shubhankar-p7g Рік тому

    Man this the best explanation to linked list.

  • @dilakshankamalathasan6070
    @dilakshankamalathasan6070 Місяць тому

    heartfelt thanks to you Neso Academy 🥰🥰🥰

  • @razorplays7
    @razorplays7 2 місяці тому +1

    Thank for the presentation

  • @tiru1508
    @tiru1508 2 роки тому

    Ur teaching is so understandable and u make complex concept easy

  • @ahsanmalik9223
    @ahsanmalik9223 Рік тому

    Excellent way of teaching love from Pakistan. Kindly explain this topic in C++ language.

  • @mandeath2971
    @mandeath2971 Рік тому

    love the simplicity of the video

  • @madhukrishnanipankar563
    @madhukrishnanipankar563 3 роки тому +4

    I badly needed this

  • @sirichandana1362
    @sirichandana1362 Рік тому

    Thanks a lot to Neso academy☺. Your explanation is very clear and it really helps in easy understanding with precise time constraint.🥰🥰

  • @edmarkmariano8576
    @edmarkmariano8576 2 місяці тому +1

    T hank you sir for this tutorial it helps me a lot :>

  • @d-square3780
    @d-square3780 4 роки тому +11

    Sir, Please increase the frequency of uploading. That would be of great help.
    Thank you, Sir, for this detailed and structured course :)

  • @proadvices8592
    @proadvices8592 Рік тому +1

    Sir now we have defined the head part . It's mean now it should be 1000 not a null ..
    Pls tell me if I was wrong

  • @VarunKumar-pf7ft
    @VarunKumar-pf7ft Рік тому

    Very Good and Simple Explanation. Thank You Sir.

  • @Shyam__Nirmal
    @Shyam__Nirmal 6 місяців тому +1

    Sir I Think we have to declare "null"initially 🤔 into the program

  • @PALAPARTHYBENNYLAZARUSKAMAL
    @PALAPARTHYBENNYLAZARUSKAMAL Рік тому +1

    can you please explain why we're using malloc to create a node in a simple way?

  • @vijaysinghchauhan7079
    @vijaysinghchauhan7079 4 роки тому

    It is comparatively easy to understand in your channel.

  • @treefrog9392
    @treefrog9392 Рік тому

    your explanations are really good

  • @Toys-REVIEWNET
    @Toys-REVIEWNET 3 роки тому

    u got the best explanation on linked list

  • @itsok5188
    @itsok5188 2 роки тому +1

    Thank you so much sir, you are perfect teacher 😍😍😍😇😊💯💯

  • @muhammadzaid591
    @muhammadzaid591 2 роки тому

    Thank you so much. Your explanation cleared my doubts.

  • @07-akshaykumarce5thsem7
    @07-akshaykumarce5thsem7 3 роки тому

    thankyou so much sir i was not getting linked list concept now its clear

  • @mohammadjilan811
    @mohammadjilan811 2 роки тому +1

    thanks! I surprisingly had fun learning a concept I though would be a nightmare

  • @prensudangol1547
    @prensudangol1547 Рік тому

    thank u for the beautiful presentation i understood clearly

  • @dipeshsamrawat7957
    @dipeshsamrawat7957 3 роки тому

    I love Neso Academy. 💝

  • @jayantghorpade
    @jayantghorpade 2 роки тому

    Concept is very powerful understand 🔥

  • @bogatiiplays
    @bogatiiplays 7 місяців тому +1

    Why you did not use free(head); at the end? :o

  • @shahinphatan4865
    @shahinphatan4865 2 роки тому

    Thank you so much sir ...... Your videos are very helpful..........🙏

  • @progos1485
    @progos1485 2 роки тому

    Amazing. Full clear. Thank you sir 🥰

  • @shaiksanamehaboobbi9791
    @shaiksanamehaboobbi9791 Рік тому

    Can you please make videos on Java Programming and it's Data Structures...because your explanation is awesome and it makes me want to learn the things.

  • @KARNATAKA__GAMING__94
    @KARNATAKA__GAMING__94 8 місяців тому

    amazing explanation sir i was noob before

  • @ahmedboshra7625
    @ahmedboshra7625 Рік тому

    why don't you have a data structure course but with java!!!
    you're amazing man !!

  • @venkatesh3439
    @venkatesh3439 4 роки тому +1

    Your explanation is best!!!

  • @piyushyadavit34
    @piyushyadavit34 2 роки тому +1

    Good work man

  • @Codingnasha
    @Codingnasha 3 роки тому +1

    sir please say me what is name of your video editor

  • @sairashehzadi6264
    @sairashehzadi6264 Рік тому +1

    Thank you so much sir
    I have no words to explain that how much you help me to understand it in a very short time
    Your method of teaching is playing a very important part in our life
    Keep it up
    Thanks again

  • @AhmedRayyan284
    @AhmedRayyan284 3 роки тому +1

    thank you so much for ur amazing effort❤

  • @sallaklamhayyen9876
    @sallaklamhayyen9876 2 роки тому

    brilliant explanation thank you so much and please continue

  • @kiranmayi3196
    @kiranmayi3196 3 місяці тому

    Very helpful sir ☺️ thank you

  • @NobleLaika
    @NobleLaika 2 роки тому

    great presentation! thank you

  • @comedy__vedious-04
    @comedy__vedious-04 Рік тому

    Good explanation bro👍

  • @AmanSingh-uc4lp
    @AmanSingh-uc4lp Рік тому +1

    It feels like I have to complete my btech from this channel only😅😅

  • @alphamegajoylagade9530
    @alphamegajoylagade9530 3 роки тому

    I enjoying your videos, it helps me to learn and understand my Subject, More videos please regarding linkedlist in C language. Thank you!

  • @mikeedubas2521
    @mikeedubas2521 3 роки тому

    Love your lecturtes! Thank you!

  • @eva42sh
    @eva42sh 2 роки тому

    Thank u sooooo much for providing such a great content

  • @rajisrajis482
    @rajisrajis482 3 роки тому

    this is so clear now thanks alot sir

  • @itsmehere6869
    @itsmehere6869 2 роки тому

    why are you not freeing memory allocating by malloc ???????????

  • @Omi281
    @Omi281 3 роки тому

    Sir will you plzz tell in which application you prepared this presentation ....?

  • @joysamraj996
    @joysamraj996 Рік тому

    can this code be written in virtual studio code as well?

  • @praveenkumarraghubharathi7045
    @praveenkumarraghubharathi7045 4 роки тому +1

    Your videos are too good. i havent seen anywhere like Your videos.pls make videos faster.it will be useful for us who are eagerly waiting to learn about data structure...cover every concept in data structure....thankyou for your visual representation videos

  • @abdulragib6004
    @abdulragib6004 3 роки тому

    bro aak number video tha samag aa gya single linkedlist

  • @sxx2491
    @sxx2491 2 роки тому

    this is exactly what I need, thx

  • @yujmyo493
    @yujmyo493 Рік тому

    You are the best يمعلم

  • @gourisankarsahoo9322
    @gourisankarsahoo9322 3 роки тому

    Thanks sir, you are great to understand easily

  • @reyazmra
    @reyazmra 4 роки тому +1

    Really it's a great explanation
    👏🏻👏🏻👏🏻
    From now
    I'll must be use your each videos
    Thank you

  • @mohitdadwani5330
    @mohitdadwani5330 6 місяців тому

    How do you make your presentation ?

  • @aniruddhsingh5280
    @aniruddhsingh5280 3 роки тому

    Thank you very much for this video

  • @rohitrajak2896
    @rohitrajak2896 2 роки тому

    simply a great video

  • @anilsarode6164
    @anilsarode6164 3 місяці тому

    SIMPLY GREAT !!✌

  • @Shivams304
    @Shivams304 4 місяці тому +1

    can i get hindi version for better understanding

  • @kelvinclark3474
    @kelvinclark3474 3 роки тому

    Thank You Very much, I'm very grateful.

  • @prateeksingh9388
    @prateeksingh9388 3 роки тому

    Best explanation

  • @ROSHAN-bf5bj
    @ROSHAN-bf5bj 3 роки тому

    Great explantion.

  • @taevy12
    @taevy12 3 роки тому

    this is so good. thanks so much.

  • @viveknirmalkar2966
    @viveknirmalkar2966 4 роки тому +1

    Thankyou for the video plz upload whole data structure series I really need😄

  • @FelixEsUnDios
    @FelixEsUnDios 2 роки тому

    "I'm using int here for simplicity sake"💀
    Wonderful lecture tho✨

  • @ishvocstr4597
    @ishvocstr4597 Рік тому

    Thanku so much sir ji

  • @EMAGK
    @EMAGK Рік тому

    Thank you ya neso

  • @gauravdev1872
    @gauravdev1872 3 роки тому

    Thanks a lot sir 😊

  • @kaashyeworkkarjaaye6880
    @kaashyeworkkarjaaye6880 Рік тому

    this is not working giving some error
    #include
    #include
    int main(){
    struct node *head = NULL;
    head = (struct node *)malloc(sizeof(struct node));
    head->data = 44;
    head->links = NULL;
    printf("%d ", head->data);
    return 0;
    }
    struct node
    {
    int data;
    struct node *links;
    };
    I don't knwo what is mistake of mine please reply me....

  • @drhattyxd-s_15fps2
    @drhattyxd-s_15fps2 3 роки тому

    pls help me
    im stuck here
    in cpp
    struct node {
    int value;
    node* pointer;
    };
    my question is that why it takes more memory than usual in my machine int =4;
    bytes ;
    and pointer takes 8 bytes of storage
    but why it shows me that sizeof struct node =16 bytes im confused.
    i think because of same type of pointer
    im gusses its counting node pre stored data value (int value) bytes and just printing sum of whole
    please correct me if im wrong im new programmer