Dynamic Memory Allocation Malloc Calloc Realloc & Free(): C Tutorial In Hindi #47

Поделиться
HTML-код
  • Опубликовано: 5 окт 2024
  • In this series of C programming in hindi tutorial videos, I have explained you everything you need to know about C language. I hope you are enjoying this C in Hindi course.
    ►This C Lecture is a part of this C Programming Course: • C Language Tutorials I...
    ►Source Code + Notes: codewithharry....
    ►Click here to subscribe - / @codewithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Learn Python In Hindi ...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithha...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

Комментарии • 441

  • @animeshchoudhury8302
    @animeshchoudhury8302 2 года назад +205

    Thank Youuu soo muchh Sir.I went through your entire playlist of C and C++ ,cracked my very first interview & today is the day i am stepping my foot for the fist time in IT world as software developer . Thanks for making my dream come true and motivating for keeping up with my passion❤️❤️😊

    • @kapilplays2127
      @kapilplays2127 2 года назад +4

      What LPA u got?

    • @ipkiss2628
      @ipkiss2628 Год назад +2

      LOL !!

    • @helloworld2054
      @helloworld2054 Год назад +2

      I'm sure you are fed up with your IT job by now and you've already started preparing for government jobs 😹

    • @mania20
      @mania20 Год назад +2

      Bro could you give us an update your situation ?

    • @93mohitpramanik19
      @93mohitpramanik19 Год назад +4

      In which company have u got placed?

  • @atanusamanta99
    @atanusamanta99 4 года назад +82

    this is definitely the best course .Harry isnt only sharing his knowledge ,he is also sharing his energy with us.

  • @18subhrasankardebnath45
    @18subhrasankardebnath45 4 года назад +83

    i am currently watching your C and DSALGO course and its really helping me a lot,,concepts are getting clear,,,i can now implement difficult problem with opttimal solutions,Thank you harry bhaia

    • @gyanabarik9389
      @gyanabarik9389 3 года назад +6

      Can you please give the link
      I am unable to find

    • @dhananjayjadhav7064
      @dhananjayjadhav7064 3 года назад +2

      @@gyanabarik9389
      Dsa by code with harry
      Search karo

    • @gyanabarik9389
      @gyanabarik9389 3 года назад +3

      @@dhananjayjadhav7064 got it 🙂

    • @Sultanuplana
      @Sultanuplana 2 года назад +1

      If you watch video carefully than you can give me answer
      "Bhi yadhi hmm calloc function k bad free kar de or fir se calloc function ka use kar le to relloc function ka kya use hai hmm ese bi to kar skte hai "

    • @brahmgaur4731
      @brahmgaur4731 2 года назад +5

      @@Sultanuplana bhai ye bilkul waisa hi h jaise ki, kisi bharosemand aadmi se 2 lakh rupay lene hain, ab cash lelo ya cheque baat to whi h, cheque carry krna aasaan hai isiliye ek average samajhdaar aadmi cheque lega agar un dono me se koi ek option select krna hoga usko.

  • @dalvinder_kaur
    @dalvinder_kaur 3 года назад +37

    No one gives such a course, even after paying ....
    Thanks to Harry Sir, He is giving us free 🙏❤️

  • @aryanshgupta750
    @aryanshgupta750 2 года назад +3

    Mujhe c me sbse achi cheez lgi
    Runtime ke dauran hi hm kaise memory manage kr rhe h ..kamaal h
    Truly sir..mazaa aa gya 🙌🙌💯❤️❤️🙏

  • @pateljoy629
    @pateljoy629 4 года назад +10

    Bhai socha nahi tha ki c itni easy tarah se koi sikha sakta he .
    complted all previous tutorials.
    plz tell me what to learn after c language.

  • @ayanavadas6154
    @ayanavadas6154 3 года назад +4

    12:27 Every concept of the video is clear to me.

  • @uniqueelsa5959
    @uniqueelsa5959 3 года назад +21

    Last moment for exam preparation,syllabus wasn't completed cuz of covud situation but it's inevitable to face questions from this topic in tomorrow's exam!!
    You are life saver bro

    • @nirvikverma945
      @nirvikverma945 2 года назад +4

      banda itni help kr rha h fir bhi brozone.....

    • @sumanthn5120
      @sumanthn5120 Год назад

      @@nirvikverma945 maybe he is a guy

    • @anonyraj2891
      @anonyraj2891 8 месяцев назад

      @@nirvikverma945 avg teenage dating experience😂

  • @Goku-ir1sy
    @Goku-ir1sy 4 года назад +13

    I understand every topic . You teach very well

  • @adarshgupta6275
    @adarshgupta6275 3 года назад +2

    Bhaiya pura smjh aa rha....
    if someone wants to learn their first c language i would strongly recommend go with this course...
    really every video is so clear...

  • @Abhishek_Poddar
    @Abhishek_Poddar 3 года назад +9

    Harry sir thanku...for everything u do for us....thanks....for each character for each word , for each sentence u wrote , for each slide u've made for each video , literally thanks for the whole course❣️❣️❣️

  • @_arpanchandra
    @_arpanchandra Год назад +3

    You are one of the best coding teachers I had ever seen Harry bhaiyaa ...❤

  • @nikitabhosale51
    @nikitabhosale51 4 года назад +29

    I watched all videos, it was awesome. I cleared my concepts. Thank you.
    Is there any videos for advanced java? Let me know. Thank you.

  • @worldproducer567
    @worldproducer567 3 года назад +4

    Sir you are the best teacher of computer science. Your videos are so easy to understand that a man who has a very low experience with coding will understand your videos in a very effective way. Thank you sir for giving your precious time to increase our knowledge .🙏🙏🙏🙏

  • @anuplohar23
    @anuplohar23 Год назад +2

    Kaash apke jaise teachers sabko mile👌👌👌

  • @NayabBashir
    @NayabBashir Год назад +3

    Thank you so much sir all concept is clear 😊 15:31 15:32

  • @jaypawar6217
    @jaypawar6217 2 года назад +4

    Sir! Amazing! Was confused about how to use dynamic memory allocation in linked list...got the Idea 👍

  • @LearningIsUltimate
    @LearningIsUltimate 3 года назад +3

    You are Excellent teacher and your understanding skill is very very well..

  • @explors91
    @explors91 3 года назад +3

    Your method of teaching is unique and easily understandable. Thank you for making these videos !

  • @SuKuN1998
    @SuKuN1998 2 года назад +2

    Sir, your method of teaching is really appreciated. It's really helpful for me.

  • @shubhamaths
    @shubhamaths 3 года назад

    2nd sem ka 6 months me jo nehi sikh paya !!! vai apke video ne 20 days mey wo sikha diya with full of concept understanding!! Thank u so much !!

  • @NavdeepSingh-xv2lb
    @NavdeepSingh-xv2lb Год назад

    sir literally sab samgh aya gaya jo bhi apna btya isma, ksm sa this is not one of the ,it is the best video for understanding dynamic memory allocation

  • @shivanshgoyal310
    @shivanshgoyal310 4 года назад +3

    Thankyou very much sab samjh a gaya bahot ache se 🔥🔥

  • @ArkadeepMukherjee-l7g
    @ArkadeepMukherjee-l7g Месяц назад +1

    Thank u so much sir.... This video cleared all my doubts

  • @sarveshdevrukhakar
    @sarveshdevrukhakar 3 года назад +5

    CWH, :)) Finally i complete my task of "learning dynamic memory allocation in C".
    &&
    Really & Honestly I want a say to CWH..... absolutely AWESOME explained BEST ever video for Dynamic Memory Allocation in HINDI on whole RUclips.
    SALUTE...🙏🙌
    definately i will suggest this video to my CLG friends...!
    Thank you so much CWH🙌 .
    ALL THE BEST 🌟🤩
    KEEP_IT_UP++;

  • @graphian8990
    @graphian8990 3 года назад +1

    @harrybhai , really u gonna explain the things in crisp and crystall clear.

  • @PraveenKumar-ev2lr
    @PraveenKumar-ev2lr 3 года назад +3

    Thank you so much sir for giving us a great knowledge about programming languages.
    Your videos are very awesome 🔥🔥🔥🔥🔥 for beginners as well as for pro's.

  • @nazo3292
    @nazo3292 2 года назад +1

    The best thing is harry bhaiya gives the best conceptual and practical understanding ♥️.

  • @aryansachan3268
    @aryansachan3268 Год назад +1

    best video for dynamic memory allocation

  • @ShrirajKandale
    @ShrirajKandale Год назад +9

    challenge accepted
    #include
    #include
    int main()
    {
    int *ptr;
    int n;
    printf("enter the size of the array =
    ");
    scanf("%d",&n);
    ptr =(int *) calloc (n,sizeof (int));
    for(int i =0; i

    • @madhavkumar1355
      @madhavkumar1355 Месяц назад

      Are bhai aise nhi use karna tha free ko beech me

  • @abhayrawat1697
    @abhayrawat1697 8 месяцев назад +1

    thanks harry bhai for the lecture...love you

  • @than0s869
    @than0s869 2 года назад +2

    This person Best coder in the 🌎 😘🥰

  • @Yashkurzekar
    @Yashkurzekar 4 года назад +1

    jo 4 saal me ni samza aaj samz gaya thank you bhai..!!!

  • @softwareword1507
    @softwareword1507 5 лет назад +3

    U r best coder on youtude
    Bro love u 😆😆😉😉

  • @namratapatil5181
    @namratapatil5181 3 года назад +3

    Amazing video. thanks for your efforts.

  • @sohitmaurya4782
    @sohitmaurya4782 3 года назад +1

    you cleared my all doubts .thanx sir

  • @sofie_77
    @sofie_77 8 месяцев назад

    We need teachers like you... thank you so much.. 💙

  • @RahulKumar-vu5jr
    @RahulKumar-vu5jr Год назад

    thank you so much for this video this concept create lot of problem in DSA.
    but now all my dots clear .
    I really say you again

  • @aniketmasram6500
    @aniketmasram6500 3 года назад

    Best youtube course , sab samjata hai Harry bhai 👍🏻 you are the best

  • @akshayakshayy847
    @akshayakshayy847 3 года назад

    maza aa jata h aapse padhke bhai........... jindigi aasan aur acchi krti jati h aapki videos meri

  • @jacki7322
    @jacki7322 4 года назад +15

    ptr = (int*)calloc(2, sizeof(int));
    for (int i = 0; i < 4; i++)
    { scanf("%d", &ptr[i]);
    printf("enter the value no %d of the array %d
    ", i, ptr[i]);
    }
    koi batega ki jab hum malloc me 2 assign kar dete or for loop i < 4 kar dete h toh wo 3, 4 ko garbage value ni leta kyu wo scanf ki value print kar deta h.

    • @anujjadhav2175
      @anujjadhav2175 3 года назад +5

      pointer points at a continuous memory location , to age ke bhi use kar pate hai hum. But its not a good practice .

    • @vivektripathi9863
      @vivektripathi9863 3 года назад +1

      because you have asked for the space of 2 but you are storing 4 diff. values thats why he is showing garbage value .

    • @apurvmalani3535
      @apurvmalani3535 2 года назад

      kyuki printf me uski value loop me print ho jati hai

    • @nhop3544
      @nhop3544 Год назад

      The arrays in which the size of arrays is 2 and you guy asking Why we are not used i

  • @ronycb7168
    @ronycb7168 29 дней назад

    I have finally bookmarked this playlist on microsoft edge.. ❤🎉🎉🎉

  • @rimjhimshrivastava2914
    @rimjhimshrivastava2914 2 года назад +2

    yes i'm understanding this entire series :> its really helpful!

  • @bhaskarpatil8956
    @bhaskarpatil8956 2 года назад

    Thank you Harry Bhai now I understood dynamic memory allocation in deep and uses of malloc realloc calloc and free

  • @pallavisinghpallavisingh1786
    @pallavisinghpallavisingh1786 2 года назад +4

    96k veiws and only 4k like why?
    This channel & ur teaching style is awesome,incredible,adorable!!

  • @parthmaheshwari2328
    @parthmaheshwari2328 3 года назад

    thnq harry bhai, dynamic memo.... ko itna easy banake samjane ke liye!!!!!!

  • @starkendeavours7072
    @starkendeavours7072 3 года назад +9

    Sir How to create 2 dimensional or rather say n-dimensional arrays, using DYnamic memory allocation?
    So that we can use it efficiently in programs like Matrices, or any other programs? *Anyone answer, please* ...

    • @shayaanrk
      @shayaanrk 11 месяцев назад

      int arr[4][5] ;

  • @coderworld6770
    @coderworld6770 3 года назад +2

    Bhai tum great ho 😊😊💯

  • @royfamily9273
    @royfamily9273 2 года назад

    Mujhe baria se samajh me aa raha hai Harry Bhaiya.

  • @lokeshchandrachaudhary3703
    @lokeshchandrachaudhary3703 5 лет назад +6

    I understand very simply... thankyou sir..

  • @adityamaskar2147
    @adityamaskar2147 3 года назад +2

    Your voice is too good in 2X speed 🔥

  • @gauravkumawat5811
    @gauravkumawat5811 2 года назад

    This course is the best on youtube

  • @joydeepsarkar981
    @joydeepsarkar981 4 года назад +1

    mujhe samajh agaya bhaiya '

  • @SachinSharma-mt8dk
    @SachinSharma-mt8dk 4 года назад +3

    most imp video..hats off to you carry

  • @andekhi3340
    @andekhi3340 5 лет назад +4

    Sir mai BCA kar raha hu 1st year complete ho chuka hai c programming k basics padh chuka hu inn chuttiyo me python seekhna chahta hu aap ke apas ko sujhaw ho to plz help

  • @vanshtyagi5822
    @vanshtyagi5822 3 года назад +2

    I am very good in c. but watching these lectures to revise. According to me, he is only clear basics not going to depth. But good for beginners to start.
    all the best

  • @hitech9815
    @hitech9815 3 года назад +1

    Harry Sir i am bit confused can you make this video for more better understanding . I am your 2 years old student and i am learning from your videos a lot and i have gained more knowledge from your videos .And i am facing problem while logging on your website .

  • @manishgupta8057
    @manishgupta8057 Год назад

    Best video of Dynamic memory allocation❤❤

  • @005_krishbhanderi2
    @005_krishbhanderi2 4 года назад +1

    thank you bhai

  • @sayanalimallick4453
    @sayanalimallick4453 3 месяца назад

    Awesome understanding❤❤❤❤

  • @UECAshutoshKumar
    @UECAshutoshKumar 2 года назад +1

    Thank you bhaiya ❤️

  • @elijahmikaelson740
    @elijahmikaelson740 2 года назад +2

    How many blocks of memory will malloc will create when we pass (n*size of )as argument ?? will it work like calloc when n >1???
    Whoever pass through this comment and if you know the answer plz clear my doubt

  • @virajdhumal1621
    @virajdhumal1621 4 года назад +9

    free() use karne ke baad starting 2 elements he free hote hai aur baaki elements saved rehte hai, wo kaise??

  • @kccitmnoida
    @kccitmnoida 2 года назад

    Mast harry bhai pura samajh aa gya , dhanyawad

  • @latestnews3391
    @latestnews3391 2 года назад

    Bahut vdia sir
    Bahut problem thi iss topic me par ab nhi

  • @muhammadbasit6176
    @muhammadbasit6176 3 года назад

    you are just the best teacher of programming

  • @cseadityatiadi
    @cseadityatiadi 3 года назад +1

    you are doing great job sir. I like keep going on.

  • @HarshWardhan-zp7lb
    @HarshWardhan-zp7lb Год назад

    AMAZING VIDEO SIR REALLY EASY AND FULLY UNDERSTOOD👍👍

  • @ritikashishodia675
    @ritikashishodia675 3 года назад +2

    Suprb explanation bhaiya very useful for me

    • @mohitrajgor2128
      @mohitrajgor2128 3 года назад

      Then please exaplain...malloc mei 2int of blocks storage lene pr use hum 5-6 takk int store kr skte hai essa kyu...you can try ...take 2*sizeof int then make for loop to i

    • @ritikashishodia675
      @ritikashishodia675 3 года назад

      @@mohitrajgor2128
      Agr agr tum 2*int krte ho malloc mai to 8 byte create hoga aur 8 byte size ka data store kr skte ho aur 2 q kya puch rahe ho acchee se btao

    • @mohitrajgor2128
      @mohitrajgor2128 3 года назад

      @@ritikashishodia675 ha but mei jo int input krta hu vo bhi to 4 bytes lega uss hisab se 4 inputs ke 16bytes storage lagega pr menne to malloc se 2block of int yaani 8 bytes...fiir 16 bytes store hua ..kesse?

    • @ritikashishodia675
      @ritikashishodia675 3 года назад

      @@mohitrajgor2128 jb 8 byte block malloc ki help se liya h to 2 hi integer store krega na.... To ye 4 input kyo le rahe ho....... Agr 4 input loge to malloc mai mai 4 block create kro 4* size of int

    • @mohitrajgor2128
      @mohitrajgor2128 3 года назад

      @@ritikashishodia675 vahi to cum memory lenne pr bhi mei input extra le skta hu or unhe print bhi kr skta hu...essa hua hai pr kesse idk...tuum try krke dekhna..

  • @gena8414
    @gena8414 3 года назад +1

    thanks a lot!!! understood the entire thing.

  • @nityasingh8276
    @nityasingh8276 3 года назад +1

    Aari h samjh ✌️

  • @javairialateef3876
    @javairialateef3876 4 месяца назад

    THE BEST TEACHER

  • @shubhamjaiswal2322
    @shubhamjaiswal2322 5 лет назад

    bahut badhiya samjhaya hai bhai bahut acha laga padh kar k
    thank you

  • @sarthaksapkale2069
    @sarthaksapkale2069 Год назад +1

    typing speed 🔥🔥🔥🔥🔥🔥🔥

  • @vgx15gaming37
    @vgx15gaming37 3 года назад

    samajh mein aaraha heh harry bhai. Thank you

  • @debopamsinhamahapatra5856
    @debopamsinhamahapatra5856 2 года назад +1

    Brilliant lecture

  • @PrernaKursija
    @PrernaKursija 2 месяца назад

    Well understood sir

  • @sharmilachoudhary9038
    @sharmilachoudhary9038 3 года назад

    Great teaching skills and best way to learn c

  • @ronycb7168
    @ronycb7168 29 дней назад

    tbh I had to refer elsewhere to understand the theory part of this lecture... Just saying my experience bcz you always ask us for feedback.. But on a high note, this presentation was short.. but it was too short for me.. bcz I think you didn't even explain what void pointers where... But Thanks to Harry Bhai for his effort towards free and quality education ❤❤😊😊😅

    • @ronycb7168
      @ronycb7168 28 дней назад

      P.S. The coding part was really fun and well presented IMO ❤😅

  • @ashretasahay5874
    @ashretasahay5874 4 года назад +4

    Sir ,free() use krne se elements deallocate nhi ho rhe... please help

  • @harry-ns3wh
    @harry-ns3wh 2 года назад

    really helpful mere college valo se to kafi badai

  • @helpforu4680
    @helpforu4680 3 года назад

    harry bhai app to malloc ka use kr rahe ho apke mind may jitna knowlage he jitna hame chiye vesa de rahe ho

  • @hamzamalik1949
    @hamzamalik1949 3 года назад

    bht acha samaj aa rha ha bro. Thanks a ton!

  • @yugsolanki4766
    @yugsolanki4766 2 года назад

    one of the best video on this topics

  • @ramankr0022
    @ramankr0022 Год назад +1

    very helpful video

  • @ManishKumar-zb2qx
    @ManishKumar-zb2qx 2 года назад +1

    Apna harry bhai
    🥰

  • @CodingHack
    @CodingHack 5 лет назад +2

    harrybhai in django 2.2 get value from form who is better name = form.cleaned_data['username'] or request.POST.get['username'] pls reply...!

  • @m._a.n.i.k
    @m._a.n.i.k 2 года назад

    malloc calloc revision done :)

  • @mohammedwaseem8599
    @mohammedwaseem8599 3 года назад

    I'm understanding all the concepts harry sir

  • @nikhilbhosale4898
    @nikhilbhosale4898 3 года назад +1

    thank you for this concept

  • @memestore23
    @memestore23 7 месяцев назад

    How helpful it is!💗🧑‍💻

  • @horeannoor5782
    @horeannoor5782 3 года назад

    Thnx alot sir your teaching method soo easy and good

  • @allenhuntsman
    @allenhuntsman Год назад

    Harry bhai I think using free for a pointer for malloc and then using that same ptr for calloc might be a good use of free

  • @ramnarayan6585
    @ramnarayan6585 3 года назад +5

    after realloc will it modify the earlier stored values in memory?

  • @onkarchavan6165
    @onkarchavan6165 Год назад

    you teaching better then paying institute

  • @reveal5081
    @reveal5081 10 месяцев назад +8

    Hara hara mahadeva

    • @SOLO-lk7fr
      @SOLO-lk7fr 5 месяцев назад

      🟢🟢🕉️

    • @COD121
      @COD121 3 месяца назад

      Har har Mahadev ❤

  • @jaishukla5760
    @jaishukla5760 Год назад

    You are the best ❤️❤️❤️❤️❤️

  • @kushagrayadav1659
    @kushagrayadav1659 3 года назад +1

    This is what the quality of IIT.

  • @AzureKnight
    @AzureKnight 2 года назад

    best teacher thank you for this video you cleared my doubts so smoothly thanks harry bhaiya

  • @harsha3339
    @harsha3339 9 дней назад

    Thanks