C_133 Dynamic Memory Allocation using malloc() | C Language Tutorials

preview_player
Показать описание

🎉 Exciting News: Jenny’s New Coding Platform & Course Launch! 🎉

Hello everyone! 🌟 I’ve missed you all and have some thrilling updates to share. After a brief hiatus, I’m back with not one but TWO pieces of fantastic news that I can’t wait to reveal!

📚 Good News #2 📚 We’re kicking things off with our first course: ‘Mastering Data Structures and Algorithms with JAVA - DSA - Extreme Beginner to Advanced (200+ Hours)’! Starting on 19th September 2024 at 8:00 PM, this comprehensive LIVE + Recorded course will cover:

Full Java coverage with JDK21
In-depth Data Structures & Algorithms
Detailed notes, PDFs, and HD recorded classes
AI tool usage, real-world case studies, projects, and 200+ placement questions
Quizzes, assignments, and a course completion certificate
A 100% refund if you're not satisfied in the first week!

🎓 Special Early Bird Discount 🎓
Act fast! For the first 500 students, the course is available at a special price of ₹9,000 (down from ₹14,999) with an additional early bird discount! Valid for 2 years, that’s just ₹375 per month!

👉 Don’t wait – Book your spot now! Click the link in the description and pinned comment to start your coding journey. I’m so excited to see you in the course. Let’s level up your coding skills together!

See you on 19th September! 🌟

#Coding #Java #DataStructures #Algorithms #OnlineCourse #Jenny’sLectures #EarlyBirdDiscount #LearnToCode

Connect & Contact Me:

See Complete Playlists:

#Cprogrammingtutorials
#DynamicMemoryAllocationinC
#mallocfunctioninC
#Jennyslectures
Рекомендации по теме
Комментарии
Автор

In static memory allocation you have a glass full of water and in dynamic memory allocation you have an empty glass and a jug and you can take as per your need.

grow_free
Автор

Static Memory Allocation

Imagine you're organizing a party and you know exactly how many guests are coming. Let's say 20 people will attend, so you prepare exactly 20 chairs before the party starts. This is "static allocation" because you've reserved a fixed number of chairs (memory) in advance, even if some guests don’t show up.



Dynamic Memory Allocation

Now, imagine you’re unsure how many guests will attend your party. You prepare only a few chairs initially, and as more guests arrive, you keep adding chairs to accommodate them. This is "dynamic allocation", where you adjust based on the actual need at runtime.


In short:
- "Static allocation" is like preparing a fixed number of chairs.
- "Dynamic allocation" is like adjusting the number of chairs based on how many guests show up.

Saumya-bhkt
Автор

Ma'am, your ways of explaining concepts are too good, I learnt C and C++ at least 2 decades ago. Wish we had someone like you to teach us, would have aced it for sure.
Thank you so much for your support.

suguflick
Автор

1. Static Memory Allocation (Toy Shelves):
Imagine you own a toy store, and you have a fixed set of shelves with five slots. Each slot can hold a different toy. You decide in advance which toys will go into each slot. Once the toys are placed, you cannot change the shelves' structure, and the toys in those slots are fixed. This is similar to static memory allocation.

2. Dynamic Memory Allocation (Toy Store with Adjustable Shelves):
Now, imagine you own a toy store, but this time you have the ability to add or remove shelves as needed. You start with an empty store and add shelves to accommodate toys as customers come in. If a customer leaves, you can remove the shelf to free up space. This represents dynamic memory allocation.

OmarfarouqMadey
Автор

Ma'am I am from northeast! Currently doing my BSC in Cs ! Your videos make programming even more better and easier! ✌️❤️❤️❤️

Miserenjamir
Автор

I'm watching another C course besides Jenny, both are amazing, but everytime I get confused there I come here and find the information missing that I was asking for in the other course. Anyway, no course is able to cover every aspect of a subject, so they are complementary, and Jenny is always great on explaning, thank you so much!

tiago.c
Автор

Mam I love ur lecture due to u I can write program and also understand program

bhagyashripatil
Автор

Real life example:-
Static memory allocation:- having wallet so that we can pay currency notes whenever we need, for that we need to keep as much money inside wallet as expected no matter it'll be used or not.

Dynamic memory allocation :- rather than having a wallet to pay money, we can keep Google pay or Paytm on our mobile so that we can pay money as per the need there will be no tention to keep currency notes


Hope u guys can relate with it😅😅

AnuragRawat
Автор

Perfectly explained everything, an absolute perfection you have in your videos mam.

pranavrawal
Автор

Madam please provide video lecture on dynamically allocated structure concept
what ever you are teaching is very useful and informative thanks for the concern.

rohank
Автор

Hi Jenny love your videos! I would be very interested in a video that further explains how this magic box called malloc works behind the scenes. How does it find memory to give you? How expensive is it to call it and what are some good practices? Does memory fragmentation affect it at all?

charimuvilla
Автор

reacently watched "c" videos way of teaching excellant lot of knowledge is their in your videos ☺, as early as possible can you start java.thank you mam, yours loving student😘

RamakrishnaPrince
Автор

Whaooo, cannot stop watching your lecture! Thanks very much ☺

johnabednego
Автор

May you please give an example of malloc() for structure as you suggested in this video? Thank you very much!

parisa
Автор

Ma'am plz upload the vedio. That how can we use maloc( ), in structure 🙏🙏🙏
It's my heartly request ma'am

ambika.m
Автор

I didn't understand chapati concept madam, because I don't know hindi. But I understand what you are going to teach.😉😉

UdaykumarKUday-ydut
Автор

I like your dynamic chapati allocation example....can relate to it

rahulannarayan
Автор

Though your English is a bit hard to listen to, I get familiar with it while turning on the caption. Actually, I'm learning another paid course, but I must watch your lessons because they're very easy to understand, they're helping me to figure out what is really under the hood.

luongManh
Автор

mam please upload a video on malloc function using structure

pavanipyna
Автор

even sandeep jain couldnt make me understand dma...but you did it ma'am...

bitsforbits