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
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🙏
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 🙏
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
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.
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.
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🖖
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).
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.
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
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 😘
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)
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
Static memory Allocation 1.This allocates memory during compile time 2. remains fixed through out the code's execution 3.If whole memory is not used ,than it leads to its wastage 4. memory gets allocated in the stack frames Dynamic Memory Allocation 1.This allocates memory during the program's execution 2.memory can be altered as per the needs of the user 3.helps avoid wastage of memory 4.this memory gets allocated the heap bloc
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.
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....🤪
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
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.
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.
Madam in the book I read the free region is inbetween the stack and the permanent storage area but u said it is the first region. Which is correct please let me know. B
*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.
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. 💯💥
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🤭
Sma - complie time
Dma - run time
Dma - pointer required
Sma - doest require any pointer
Dma - memory can be freed
Sma - wastage of memory
Sma :- permanent memory allocation throughout the program
Dma :- we can change the size of memory during the program
Sma-- less efficient
Dma-- more efficient
Sma---program executes faster
Dma--program executes less fast
@@sarthaksavarn8913but memory is free after the completion of the program in sma
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
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🙏
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 🙏
آره بنظرم خیلی مفید بود واقعاً منم که قبل از امتحان دارم میبینم ای وای خاک تو سرم 🤣
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
Bro provided notes well❤️
@@AnuragRawat01ma'am kindly S
I was just eagerly waiting for this concept since 25 days mam tq for coming back and teaching this 🥰
hello can you reply me@saibalam7852
Maam you are the only one in my life who helps me to reach my goals
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.
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.
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🖖
thank you so much mam🥰🥰🥰🥰
Say cute mam he is cuty
I always come to get knowledge ❌
I always come here to see mam 😍✔️
Same same iam also
always come for knowledge
what an explanation of DMA!!!!!!! i have enjoyed alot
Best Lec Ever , I'll mention you in my Graduation ,😍Lol
Thank you mam your Teaching technique is very helpfull for knowledge or easily understandable and clearing proper concepts
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).
Much needed video. Thank you mam. I was waiting for video on this topic. ❤️
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.
Mam
Every one are watching to learn ,
But I watch to see you!!
You are soo beautiful🥰
Mam you are legend. I am in deep love with your teaching.
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
Greater teacher appreciate u soon 1M subscribe will reach
In my career...i listened only your classes with intrest 😅
Thank you mam 💖
Mam ur lectures are really best for competitive exam...
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...
Ma'am one day in future I want to meet you , because you are helping ous too much,🥰🥰
You look so beautiful these days, and your teaching skills are awesome.
Most beneficial video,
love you mam.
Mam u are my crush mai series nhi aapki vedio dekhta h thanku mam ❤️
Mam I love the way you teach ❤❤❤
Mam your way of teaching is so soo sooo sooooo nice....,
Mam please Do Java and python also because ,your explanation is very very Good😊
Mam this video is very very helpful. Thank you so much dear Mam.
May you please discuss and explain more about the memory layout at 12:06 as you suggested? Thank you very much!
i have learn lots of new thinks here.. thank you so much mam...
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 😘
Yes mam.. Please continue dsa from asymptotic notations from where u stopped.. 😊
thank you Professor Jenny, you are always very helpful!
Very well explained 👍
Looks gorgeous 😅🔥♥️
Thanku mam for explaining very clearly
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)
Thanks for such helpful content.❤
Mam big fan of you please reply ..♥️♥️🔥🔥
Hi
Enough for this life mam ..😍😍
Deep concept🖤🔥
You are the best.❤
love you ma'am ❤❤❤
I'm lucky because I'm not a student so I can focus on her Cuteness 💖
LoL
If u r not student.and don't wanna get taught so what were u doing here
Bro ✅
I am also ❤
Bosdk Kam kar
This is not fare..
thank you mam this is the best matter for me for learning c programming
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
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...
Beautiful teaching.
Yaayyyy. Mam is back 💖
I love you mam❤️.. love from nepal❤️❤️
sma -comlie time
dma - run time
dma - we use pointer
sma- we did have reuseablity
Thanks ❤
Static memory Allocation
1.This allocates memory during compile time
2. remains fixed through out the code's execution
3.If whole memory is not used ,than it leads to its wastage
4. memory gets allocated in the stack frames
Dynamic Memory Allocation
1.This allocates memory during the program's execution
2.memory can be altered as per the needs of the user
3.helps avoid wastage of memory
4.this memory gets allocated the heap bloc
Ma'am..you deserve all the money that I gave to my University...
THE BEST TEACHER FOR DATA STRUCTURE AND C THAT I HAD EVER SEEN IS #JENNYMAM.
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..
I'm here after your video goes viral on Instagram
Hi Jenny,thank you for the videos they're very helpful,kindly go through the memory layout .
Thank you ma'am for well explanation.
Nice love and respect from Pak
You are a great teacher madam.
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.
Didi, plz teach us C++ bcz ur explaining is awesome and I have easily learnt the concept of C programming bcz of you.😃
Mam kindly continue DAA series also...
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....🤪
Thank you so much man🙏🤍
Mam please make a video on ,
Display the names in alphabetical order .
Love form nepal 🇳🇵🤍
Thank u ma'am,good explanation
You earned one more subscriber
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
Mai tou apko dekhne aya hu ☺️❤️
Mam how heap memory differs from stack memory?
Super mam 💖
Please upload memory segment video, which will be really helpfull
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
Thanks god every parents made each beautiful daughter's ❤️👌👌🙏🙏
Thank you mam.
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.
v good description
Mam notes milaga 😊 thoda help hojata hamlog ka 🙏🏻
Mam i want brief about memory represention... Plz make one seperate vedio on that
mam please one vedio related to memory types(stack,heap.....)and what section of program is stored in which memory
Like my computer memory is all full
So does that means i can't do any programs or allocate memory for the program
Like in software case?
Also make detail video on that 4 parts of the memory mam pls
So interesting!
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.
Aravind is a nice guy
So thanks mam❤
12:05 Mam please make a detailed video on memory layout.
Madam in the book I read the free region is inbetween the stack and the permanent storage area but u said it is the first region. Which is correct please let me know.
B
Mam,When will you complete this C programming videos completely
Very nice
Please explain memory segments in a seperate video ma'am
If u would posted this video 4 days ago.. I would gain 13 marks in my exam😭😭...
Good 👍
Madam if it is float or character then what is the fixed memory as ,4 for integer in static memory allocation.
U said that u have easy technique in solving the recurrence relation.. Please make a video of that..
*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.
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. 💯💥
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🤭
I am studying DS concept so this video is very useful to me but one day I will create a new data structure .
Bhot badhiya. Hame bhi batana, jo bhi datra structure banao.