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
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❤️❤️😊
What LPA u got?
LOL !!
I'm sure you are fed up with your IT job by now and you've already started preparing for government jobs 😹
Bro could you give us an update your situation ?
In which company have u got placed?
this is definitely the best course .Harry isnt only sharing his knowledge ,he is also sharing his energy with us.
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
Can you please give the link
I am unable to find
@@gyanabarik9389
Dsa by code with harry
Search karo
@@dhananjayjadhav7064 got it 🙂
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 "
@@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.
No one gives such a course, even after paying ....
Thanks to Harry Sir, He is giving us free 🙏❤️
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 🙌🙌💯❤️❤️🙏
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.
12:27 Every concept of the video is clear to me.
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
banda itni help kr rha h fir bhi brozone.....
@@nirvikverma945 maybe he is a guy
@@nirvikverma945 avg teenage dating experience😂
I understand every topic . You teach very well
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...
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❣️❣️❣️
You are one of the best coding teachers I had ever seen Harry bhaiyaa ...❤
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.
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 .🙏🙏🙏🙏
Kaash apke jaise teachers sabko mile👌👌👌
Thank you so much sir all concept is clear 😊 15:31 15:32
Sir! Amazing! Was confused about how to use dynamic memory allocation in linked list...got the Idea 👍
You are Excellent teacher and your understanding skill is very very well..
Your method of teaching is unique and easily understandable. Thank you for making these videos !
Sir, your method of teaching is really appreciated. It's really helpful for me.
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 !!
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
Thankyou very much sab samjh a gaya bahot ache se 🔥🔥
Thank u so much sir.... This video cleared all my doubts
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++;
@harrybhai , really u gonna explain the things in crisp and crystall clear.
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.
The best thing is harry bhaiya gives the best conceptual and practical understanding ♥️.
best video for dynamic memory allocation
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
Are bhai aise nhi use karna tha free ko beech me
thanks harry bhai for the lecture...love you
This person Best coder in the 🌎 😘🥰
jo 4 saal me ni samza aaj samz gaya thank you bhai..!!!
U r best coder on youtude
Bro love u 😆😆😉😉
Amazing video. thanks for your efforts.
you cleared my all doubts .thanx sir
We need teachers like you... thank you so much.. 💙
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
Best youtube course , sab samjata hai Harry bhai 👍🏻 you are the best
maza aa jata h aapse padhke bhai........... jindigi aasan aur acchi krti jati h aapki videos meri
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.
pointer points at a continuous memory location , to age ke bhi use kar pate hai hum. But its not a good practice .
because you have asked for the space of 2 but you are storing 4 diff. values thats why he is showing garbage value .
kyuki printf me uski value loop me print ho jati hai
The arrays in which the size of arrays is 2 and you guy asking Why we are not used i
I have finally bookmarked this playlist on microsoft edge.. ❤🎉🎉🎉
yes i'm understanding this entire series :> its really helpful!
Thank you Harry Bhai now I understood dynamic memory allocation in deep and uses of malloc realloc calloc and free
96k veiws and only 4k like why?
This channel & ur teaching style is awesome,incredible,adorable!!
5.7k now.
thnq harry bhai, dynamic memo.... ko itna easy banake samjane ke liye!!!!!!
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* ...
int arr[4][5] ;
Bhai tum great ho 😊😊💯
Mujhe baria se samajh me aa raha hai Harry Bhaiya.
I understand very simply... thankyou sir..
Your voice is too good in 2X speed 🔥
This course is the best on youtube
mujhe samajh agaya bhaiya '
most imp video..hats off to you carry
bhai vo carry nhi harry hai.
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
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
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 .
Best video of Dynamic memory allocation❤❤
thank you bhai
Awesome understanding❤❤❤❤
Thank you bhaiya ❤️
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
free() use karne ke baad starting 2 elements he free hote hai aur baaki elements saved rehte hai, wo kaise??
Yes , absolutely
Kaise bhai have you got answers, please tell me also
Mast harry bhai pura samajh aa gya , dhanyawad
Bahut vdia sir
Bahut problem thi iss topic me par ab nhi
you are just the best teacher of programming
you are doing great job sir. I like keep going on.
AMAZING VIDEO SIR REALLY EASY AND FULLY UNDERSTOOD👍👍
Suprb explanation bhaiya very useful for me
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
@@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
@@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?
@@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
@@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..
thanks a lot!!! understood the entire thing.
Aari h samjh ✌️
THE BEST TEACHER
bahut badhiya samjhaya hai bhai bahut acha laga padh kar k
thank you
typing speed 🔥🔥🔥🔥🔥🔥🔥
samajh mein aaraha heh harry bhai. Thank you
Brilliant lecture
Well understood sir
Great teaching skills and best way to learn c
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 ❤❤😊😊😅
P.S. The coding part was really fun and well presented IMO ❤😅
Sir ,free() use krne se elements deallocate nhi ho rhe... please help
really helpful mere college valo se to kafi badai
harry bhai app to malloc ka use kr rahe ho apke mind may jitna knowlage he jitna hame chiye vesa de rahe ho
bht acha samaj aa rha ha bro. Thanks a ton!
one of the best video on this topics
very helpful video
Apna harry bhai
🥰
harrybhai in django 2.2 get value from form who is better name = form.cleaned_data['username'] or request.POST.get['username'] pls reply...!
malloc calloc revision done :)
I'm understanding all the concepts harry sir
thank you for this concept
How helpful it is!💗🧑💻
Thnx alot sir your teaching method soo easy and good
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
after realloc will it modify the earlier stored values in memory?
yes, it gets modified
you teaching better then paying institute
Hara hara mahadeva
🟢🟢🕉️
Har har Mahadev ❤
You are the best ❤️❤️❤️❤️❤️
This is what the quality of IIT.
best teacher thank you for this video you cleared my doubts so smoothly thanks harry bhaiya
Thanks