C_132 Introduction to Dynamic Memory Allocation in C | SMA vs DMA

  Рет қаралды 283,205

Jenny's Lectures CS IT

Jenny's Lectures CS IT

Күн бұрын

Пікірлер: 255
@bhaskarchakraborty8328
@bhaskarchakraborty8328 2 жыл бұрын
Sma - complie time Dma - run time Dma - pointer required Sma - doest require any pointer Dma - memory can be freed Sma - wastage of memory
@sarthaksavarn8913
@sarthaksavarn8913 9 ай бұрын
Sma :- permanent memory allocation throughout the program Dma :- we can change the size of memory during the program
@ictfan-ly8gh
@ictfan-ly8gh 4 ай бұрын
Sma-- less efficient Dma-- more efficient Sma---program executes faster Dma--program executes less fast
@TanujGutta-r3k
@TanujGutta-r3k Ай бұрын
​@@sarthaksavarn8913but memory is free after the completion of the program in sma
@harshithchowdary5731
@harshithchowdary5731 19 күн бұрын
Sma allocate the memory at compile time Dma allocates the memory in run time In sma we cannot change the size of the memory once we allocated But in dma we can change size the size of the memory
@divyprakashpandey4458
@divyprakashpandey4458 Жыл бұрын
Notes for this session: - In SMA, the compiler is pre-defined for how much memory is to be allocated to a certain variable & these memory allocated at run-time CANNOT be modified during runtime - In DMA ,The compiler allocates memory as per programmer needs and this memory can be changed during the runtime of code - DMA is one of the application of Pointers - Always remember to free the memory from the pointer once, you're done! - Memory is dynamically allocated from the Heap
@AnuragRawat01
@AnuragRawat01 Жыл бұрын
Bro provided notes well❤️
@khankhn-rk6yw
@khankhn-rk6yw 3 ай бұрын
@@AnuragRawat01ma'am kindly S
@asapnino3625
@asapnino3625 Жыл бұрын
Key Differences: Static memory allocation occurs at compile time and has a fixed size and lifetime, while dynamic memory allocation occurs at runtime, with variable size and potentially longer lifetimes. Static memory allocation is often used for simple, fixed-size data structures and is managed automatically by the compiler. Dynamic memory allocation is used when data sizes are not known in advance and requires manual management. Static allocation is typically faster and more deterministic, while dynamic allocation provides greater flexibility. Dynamic allocation can lead to memory leaks or other runtime issues if memory is not deallocated properly. Static allocation avoids such issues. The choice between static and dynamic memory allocation depends on the specific requirements of the program and the need for flexibility, performance, and memory management control.
@parisa9374
@parisa9374 2 жыл бұрын
I am very glad you are back Jenny! Please whenever it is convenient for you, make videos about storage classes (auto, register, static, external storage classes) and command-line arguments, explaining the nuts and bolts of them as you do always. Thank you very much and again happy to see you back🙏
@parisa9374
@parisa9374 2 жыл бұрын
More requests dear Jenny;) May you please make some videos on how you generally study and learn new concepts from CS and IT that you are this much comfortable and knowledgeable ( I know it is practice and experience but I would like to know your approach toward learning new concepts in CS/IT? How do you study and read the CS textbooks? What else that you are recommending? Thank you very much and keep up the great work! Take care 🙏
@robogamer2023
@robogamer2023 Жыл бұрын
آره بنظرم خیلی مفید بود واقعاً منم که قبل از امتحان دارم میبینم ای وای خاک تو سرم 🤣
@c.ravikishorereddy8099
@c.ravikishorereddy8099 2 жыл бұрын
Maam you are the only one in my life who helps me to reach my goals
@saibalam7852
@saibalam7852 2 жыл бұрын
I was just eagerly waiting for this concept since 25 days mam tq for coming back and teaching this 🥰
@navaneethreddy6007
@navaneethreddy6007 4 ай бұрын
hello can you reply me@saibalam7852
@aparnamane4899
@aparnamane4899 2 жыл бұрын
SMA DMA 1)At Compile time. 1) At run time. 2)memory is allocated form stack frame 2)memory is allocated form Heap(pool of free ( stack memory segment). memory block). 3)Fixed memory allocation (we cannot increase or 3)we can increase or decrease memory decrease memory size according to our pr. Req.) size according to our pr. Req. 4)we take var, ptr also. 4)here we req. ptr to access mem. From heap. 5)we free allocated mem. Afte exit the program. 5)in DMA:= we can use malloc(),calloc(),free(),realloc() to free memory and all. & we free memory block and t reusability) to use in many time in program and any whrere. (mem. Is reusabale).
@erwanfadlysudimanstudent1199
@erwanfadlysudimanstudent1199 2 жыл бұрын
This is new??! Jenny your videos have saved me from linked list assignment! Love it and thank you! I dont even have any assignment atm but come for your video.
@Maahi-n1
@Maahi-n1 2 жыл бұрын
Hi mam i am not watching this video because I am there in your's string video but I will see this video after file concept thank you mam you are great🖖
@Maahi-n1
@Maahi-n1 2 жыл бұрын
thank you so much mam🥰🥰🥰🥰
@silentlordofyourmother3281
@silentlordofyourmother3281 2 жыл бұрын
Say cute mam he is cuty
@EhabSmH0
@EhabSmH0 Жыл бұрын
SMA: 1- You can not free the remaining memory, and the remaining will be a waste of memory. 2- Memory allocated from the stack part. 3- Pointers does not require. DMA: 1- You can free the remaining memory. (allocate and deallocate) 2- Memory allocated dynamically from the heap part. 3- Pointers are a must.
@mvbangar
@mvbangar 2 жыл бұрын
Thank you mam your Teaching technique is very helpfull for knowledge or easily understandable and clearing proper concepts
@Adiii9657
@Adiii9657 2 жыл бұрын
I always come to get knowledge ❌ I always come here to see mam 😍✔️
@mohanrocky6759
@mohanrocky6759 2 жыл бұрын
Same same iam also
@commercekv8422
@commercekv8422 2 жыл бұрын
always come for knowledge
@tawseeffayaz6175
@tawseeffayaz6175 2 жыл бұрын
Mam ur lectures are really best for competitive exam...
@damiangermaine7218
@damiangermaine7218 2 жыл бұрын
Best Lec Ever , I'll mention you in my Graduation ,😍Lol
@Questers_s
@Questers_s 2 жыл бұрын
Mam you are legend. I am in deep love with your teaching.
@anneymainayashwanth6336
@anneymainayashwanth6336 2 жыл бұрын
Mam Every one are watching to learn , But I watch to see you!! You are soo beautiful🥰
@सनातनी-श5ध
@सनातनी-श5ध 2 жыл бұрын
Mam, could you prepare a video on memory layout? It with be really helpful to us to visualise and get this memory allocation concept crystal clear...
@parisa9374
@parisa9374 2 жыл бұрын
May you please discuss and explain more about the memory layout at 12:06 as you suggested? Thank you very much!
@cs_111_amansingh6
@cs_111_amansingh6 2 жыл бұрын
Mam u are my crush mai series nhi aapki vedio dekhta h thanku mam ❤️
@MdRubel-hr5ur
@MdRubel-hr5ur Жыл бұрын
Mam this video is very very helpful. Thank you so much dear Mam.
@motemontero5592
@motemontero5592 2 жыл бұрын
Greater teacher appreciate u soon 1M subscribe will reach
@Muaz531
@Muaz531 2 жыл бұрын
Mam your way of teaching is so soo sooo sooooo nice....,
@saibalam7852
@saibalam7852 2 жыл бұрын
Mam after this C programming start with DAA because calculating time and space complexity is a big question in my mind that u can only clear this thing 😘
@ianazraf
@ianazraf 2 жыл бұрын
Yes mam.. Please continue dsa from asymptotic notations from where u stopped.. 😊
@uttamkumerroy38
@uttamkumerroy38 2 жыл бұрын
i have learn lots of new thinks here.. thank you so much mam...
@kashifaziz5272
@kashifaziz5272 2 жыл бұрын
You look so beautiful these days, and your teaching skills are awesome.
@dangerousdesert
@dangerousdesert 2 жыл бұрын
Most beneficial video, love you mam.
@yasaswivaliveti6187
@yasaswivaliveti6187 2 жыл бұрын
Mam the way you teach the concept is awesome not only the content but the people who explain it should also be good you are adorable mam If you like my comment please do reply
@abhaymehta8809
@abhaymehta8809 2 жыл бұрын
Much needed video. Thank you mam. I was waiting for video on this topic. ❤️
@kartiksheoran3603
@kartiksheoran3603 7 ай бұрын
Thanku mam for explaining very clearly
@Sanai9
@Sanai9 Жыл бұрын
sma:-memory allocation at compile time i.e fixed memory memory stored in stack loss and wastage of memory cant be freed until end of the program dma:-memory aloocated at run time i.e variable memory we can change memory allocation according to our usage memory stored in heap no loss or wastage of memory can be freed anywhere btw the end of the program
@eumm11
@eumm11 Жыл бұрын
thank you Professor Jenny, you are always very helpful!
@kavinrajR.R
@kavinrajR.R 3 ай бұрын
sma -comlie time dma - run time dma - we use pointer sma- we did have reuseablity
@arpityadav1437
@arpityadav1437 2 жыл бұрын
Ma'am one day in future I want to meet you , because you are helping ous too much,🥰🥰
@sasikanthputtupu2384
@sasikanthputtupu2384 2 жыл бұрын
Mam please Do Java and python also because ,your explanation is very very Good😊
@harshbachchani7981
@harshbachchani7981 2 жыл бұрын
thank you mam this is the best matter for me for learning c programming
@Daya_1996-f6g
@Daya_1996-f6g 9 ай бұрын
In my career...i listened only your classes with intrest 😅 Thank you mam 💖
@jagjotsingh3600
@jagjotsingh3600 2 жыл бұрын
THE BEST TEACHER FOR DATA STRUCTURE AND C THAT I HAD EVER SEEN IS #JENNYMAM.
@Manpreet_saini696
@Manpreet_saini696 Жыл бұрын
Sma=in sma we can allocate the memory from stack Dma=in dma we can allocate the memory from heap Sma=memory can be allocated at compile time Dma=memory can be allocated at run time Sma=memory can be wastage Dma=memory can be reused
@dishantitaliya1912
@dishantitaliya1912 Жыл бұрын
Thank you ma'am for well explanation.
@tharunranjith720
@tharunranjith720 2 жыл бұрын
Mam I love the way you teach ❤❤❤
@hariparuchuru3858
@hariparuchuru3858 2 жыл бұрын
Some of the difference between SMA & DMA STATIC MEMORY ALLOCATION: Memory allocated at compile time Memory is alloted from STACK Fixed memory Allocation( can't change at anytime once initialized) Memory wastage happens We take variables, pointers etc... DYNAMIC MEMORY ALLOCATION: Memory allocated at runtime. Memory is alloted from HEAP Memory is not fixed we can change according to our requirements Efficient usage of memory To perform DMA we need a POINTER and these memory should be FREED during the program so that it can be reused again.
@ShangSiQi09
@ShangSiQi09 2 жыл бұрын
I'm lucky because I'm not a student so I can focus on her Cuteness 💖
@AnuragRawat01
@AnuragRawat01 Жыл бұрын
LoL If u r not student.and don't wanna get taught so what were u doing here
@frictionalguru6705
@frictionalguru6705 Жыл бұрын
Bro ✅
@Rohit_upawanshi
@Rohit_upawanshi Жыл бұрын
I am also ❤
@vivekvivek5111
@vivekvivek5111 Жыл бұрын
Bosdk Kam kar
@Moon_lovee
@Moon_lovee Жыл бұрын
This is not fare..
@vivek7935
@vivek7935 2 жыл бұрын
I love your lectures and your are gorgeous and awesome mam ,how you got that beauty and knowledge at the same time,most wanted mystery..
@satyamantapurkar4531
@satyamantapurkar4531 2 жыл бұрын
Very well explained 👍
@chandankorado3749
@chandankorado3749 2 жыл бұрын
Ma'am... Design and Analysis of Algorithm ( DAA ) ... Only 5 five videos are made.... We want more topics.. could you please make those ma'am...
@prasad.kkomarapuri712
@prasad.kkomarapuri712 2 жыл бұрын
Mam big fan of you please reply ..♥️♥️🔥🔥
@JennyslecturesCSIT
@JennyslecturesCSIT 2 жыл бұрын
Hi
@prasad.kkomarapuri712
@prasad.kkomarapuri712 2 жыл бұрын
Enough for this life mam ..😍😍
@GurukulStudyCentreIndia
@GurukulStudyCentreIndia 2 жыл бұрын
Beautiful teaching.
@rasithnovfal1920
@rasithnovfal1920 2 жыл бұрын
Assignment:The difference between sma and dma is in sma the mem is allocated in the stack but we cant free the memory during the runtime means we cant reuse then in dma the mem is allocated in the heep part and it also provides a way to free the memory which can be reused....🤪
@calebmuchiri8162
@calebmuchiri8162 2 жыл бұрын
Hi Jenny,thank you for the videos they're very helpful,kindly go through the memory layout .
@Strawberry12352
@Strawberry12352 2 жыл бұрын
Ma'am, you said after the execution the memory will be freed like that same block can be used in another program. But during execution, the memory is allocated for that particular variable so that memory is not available only during that program. so my question is whatever code we write that things don't take any space in memory once execution is done? (as you said they are freed in sma also)
@ststechnology-s9r
@ststechnology-s9r 9 ай бұрын
Thanks for such helpful content.❤
@__YashRaj
@__YashRaj 2 жыл бұрын
Mam kindly continue DAA series also...
@shahrearjahan9159
@shahrearjahan9159 2 жыл бұрын
Ma'am..you deserve all the money that I gave to my University...
@catherinemweenemilimo1222
@catherinemweenemilimo1222 2 жыл бұрын
You are a great teacher madam.
@anushmachandran1175
@anushmachandran1175 Жыл бұрын
Thank u ma'am,good explanation
@sushamaavaghade9945
@sushamaavaghade9945 Жыл бұрын
Mam i want brief about memory represention... Plz make one seperate vedio on that
@AmanDeep-mo6nv
@AmanDeep-mo6nv Жыл бұрын
Mam notes milaga 😊 thoda help hojata hamlog ka 🙏🏻
@danishali-ol1vz
@danishali-ol1vz 2 жыл бұрын
Nice love and respect from Pak
@RNTXvaldus
@RNTXvaldus 2 жыл бұрын
I'm here after your video goes viral on Instagram
@godshivam1709
@godshivam1709 Жыл бұрын
Static memory location:- It is a process of allocating memory at run time of a program. Here memory sized is fixed and it can't be reused. Dynamic Memory Allocation:- Process of allocating and de allocating memory at run time of a program. Here , memory can be used again and again as it shows the property of reusability. 💯💥
@RukhaySukhayPakwaan
@RukhaySukhayPakwaan 2 жыл бұрын
I love you mam❤️.. love from nepal❤️❤️
@PramodYadav-dr9vq
@PramodYadav-dr9vq 2 жыл бұрын
mam please one vedio related to memory types(stack,heap.....)and what section of program is stored in which memory
@subhabratabehera8835
@subhabratabehera8835 2 жыл бұрын
Looks gorgeous 😅🔥♥️
@jasheerali
@jasheerali 2 жыл бұрын
Please upload memory segment video, which will be really helpfull
@madhavinetha5839
@madhavinetha5839 2 жыл бұрын
Please explain memory segments in a seperate video ma'am
@anuragpatelhbtu2665
@anuragpatelhbtu2665 2 жыл бұрын
love you ma'am ❤❤❤
@saibalam7852
@saibalam7852 2 жыл бұрын
Also make detail video on that 4 parts of the memory mam pls
@talhashah3986
@talhashah3986 Жыл бұрын
12:05 Mam please make a detailed video on memory layout.
@asogwafidelia9239
@asogwafidelia9239 2 жыл бұрын
You are the best.❤
@Bipin67532
@Bipin67532 2 жыл бұрын
Thank you so much man🙏🤍 Mam please make a video on , Display the names in alphabetical order . Love form nepal 🇳🇵🤍
@Mehedihasan-rahat
@Mehedihasan-rahat Ай бұрын
Thanks ❤
@mdnadimbhuiyan4310
@mdnadimbhuiyan4310 10 ай бұрын
Deep concept🖤🔥
@coding-X-04
@coding-X-04 2 жыл бұрын
I am studying DS concept so this video is very useful to me but one day I will create a new data structure .
@yoga-asolution.....6208
@yoga-asolution.....6208 2 жыл бұрын
Bhot badhiya. Hame bhi batana, jo bhi datra structure banao.
@bhaskarverma8943
@bhaskarverma8943 2 жыл бұрын
Mam please also start with c++ series. I have completed this c language now we are studying c++ in second semester so please mam strat with c++,it's a humble request.
@sagarsubrahmanya4395
@sagarsubrahmanya4395 2 жыл бұрын
Yes mam
@captain-tb2ek
@captain-tb2ek Жыл бұрын
Bro where did u learn c++ pls tell
@bhaskarverma8943
@bhaskarverma8943 Жыл бұрын
@@captain-tb2ek yup man
@captain-tb2ek
@captain-tb2ek Жыл бұрын
@@bhaskarverma8943 where, which channel??, which course 🙏
@bhaskarverma8943
@bhaskarverma8943 Жыл бұрын
@@captain-tb2ek codewithharry c++ playlist
@venumandadi31
@venumandadi31 2 жыл бұрын
Aravind is a nice guy
@sanskar6268
@sanskar6268 2 жыл бұрын
Didi, plz teach us C++ bcz ur explaining is awesome and I have easily learnt the concept of C programming bcz of you.😃
@ianazraf
@ianazraf 2 жыл бұрын
U said that u have easy technique in solving the recurrence relation.. Please make a video of that..
@jstar2135
@jstar2135 2 жыл бұрын
Thank you mam.
@VishalKumar-ql2jt
@VishalKumar-ql2jt 2 жыл бұрын
Hello mam, Can you please tell me that how many videos are left in this C programming course and how much time is it gonna take to be completed
@pratikbade9634
@pratikbade9634 2 жыл бұрын
thank you maam but i need video on malloc and calloc . as possible as soon
@navaneethashok4186
@navaneethashok4186 2 жыл бұрын
Yaa, ma'am pls.. Make a video
@muhammadahmadyousaf2824
@muhammadahmadyousaf2824 2 жыл бұрын
Yaayyyy. Mam is back 💖
@bgmtrendzjsp2252
@bgmtrendzjsp2252 2 жыл бұрын
Hi mam one like plz I have big fan of u..watch almost all videos
@cricket_addicted_guys
@cricket_addicted_guys 2 жыл бұрын
Mam please upload the memory management in c language I need some more information about memory management for memory allocation in c.. Please make a video and upload as soon as possible.
@ravikantsain9520
@ravikantsain9520 2 жыл бұрын
You earned one more subscriber
@vicky_2143
@vicky_2143 Жыл бұрын
You are teaching very well mam. But the main thing is ,we are not able to concentrate on the board☺, because of your beauty is distracting on eyesight🤭
@MasterYt12917
@MasterYt12917 2 жыл бұрын
Kya hi batao aapka lecture suno ya aapko dekho kya karo kyu re itna sundar bhe kyu hota hei
@cricket_addicted_guys
@cricket_addicted_guys 2 жыл бұрын
Mam please upload the memory management in c language
@PAMPYSUTRADHAR
@PAMPYSUTRADHAR 2 ай бұрын
Mam how heap memory differs from stack memory?
@UniqueBeatbox
@UniqueBeatbox 2 жыл бұрын
Mai tou apko dekhne aya hu ☺️❤️
@ALL_I_KNOW_1172
@ALL_I_KNOW_1172 2 жыл бұрын
Mam,When will you complete this C programming videos completely
@rudhirmahalik
@rudhirmahalik 2 жыл бұрын
can we say that, to use the dynamic memory we have to access the static memory first then we can point to the DM using pointer......stating such will it be true.
@rameshnaidu8253
@rameshnaidu8253 11 ай бұрын
Super mam 💖
@vinayakumari2390
@vinayakumari2390 2 жыл бұрын
Madam if it is float or character then what is the fixed memory as ,4 for integer in static memory allocation.
@manoharsagunthalla9215
@manoharsagunthalla9215 Жыл бұрын
Please put separate video for memory alocation
@brighteducationwithlalit
@brighteducationwithlalit 2 жыл бұрын
So in the series of learning c programming.......
@annu_kr_vishwa
@annu_kr_vishwa 4 ай бұрын
Video start 2:21
@NelapatiSivakavitha
@NelapatiSivakavitha Жыл бұрын
mam can u please explain difference between run time and compile time with the help of code
@futuretakgk7828
@futuretakgk7828 2 жыл бұрын
Very nice
@bjornborg6460
@bjornborg6460 2 жыл бұрын
Can you please make a video on " Two Edge Connected Dominating set"????
@debojitacharjee
@debojitacharjee 2 жыл бұрын
*BUT A PROGRAM IS COMPILED TO MACHINE LANGUAGE ONLY WITHOUT EXECUTION* - compiler only converts the code to machine language and stores in a file but doesn't execute the program, then how STATIC memory is allocated? STATIC memory will be allocated only if it's defined in the code whether to allocate STATIC or DYNAMIC memory. For example, if thr size of an array was defined by any integer value in the code then STATIC memory will be allocated during execution. But if any variable is used to get the size from user input or from any other processing then it will be DYNAMIC allocation.
C_133 Dynamic Memory Allocation using malloc() | C Language Tutorials
23:44
Jenny's Lectures CS IT
Рет қаралды 217 М.
Pointers and dynamic memory - stack vs heap
17:26
mycodeschool
Рет қаралды 1,5 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 55 МЛН
黑天使只对C罗有感觉#short #angel #clown
00:39
Super Beauty team
Рет қаралды 36 МЛН
C_104 Recursion in C | Introduction to Recursion
18:51
Jenny's Lectures CS IT
Рет қаралды 461 М.
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
i wrote my own memory allocator in C to prove a point
5:23
Low Level
Рет қаралды 404 М.
C_134 Dynamic Memory Allocation using calloc() | C Language Tutorials
13:49
Jenny's Lectures CS IT
Рет қаралды 107 М.
C_109 Structures in C - part 1| Introduction to Structures
14:42
Jenny's Lectures CS IT
Рет қаралды 479 М.
Top 7 Data Structures for Interviews Explained SIMPLY
13:02
Codebagel
Рет қаралды 240 М.
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 605 М.
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН