free() doesn't remove the value. it stays there, it just returns the memory to the system. The value is still there. You can write it with 0's before returning it, or just return it. But you should also set the pointer to null after use.
We're so glad that you enjoyed your time learning with us! If you're interested in continuing your education and developing new skills, take a look at our course offerings in the description box. We're confident that you'll find something that piques your interest!
Hey, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
Really informative but please stop explaining things like you are reading from a note or a book. Because it feels like you are reading very fast from a book to explain this . I had to play this video slow and go back again and again to understand what you are saying. Please teach naturally to make it clear instead of reading from some notes. Accent is also bit difficult to understand for eg when you say int "n1 and n2". Thanks.
Got a Question on this topic? Let us know in the comment section below 👇 and we'll have our experts answer it for you. Thank You!
I want to become a bug hunter n bug bounty please help me say any way to score that
For the first time in my life, I understand what the difference is between the stack and the heap. Thank you!
Hello thank you for watching our video .We are glad that we could help you in your learning !
free() doesn't remove the value. it stays there, it just returns the memory to the system. The value is still there. You can write it with 0's before returning it, or just return it. But you should also set the pointer to null after use.
I think there was a mistake in the heap allocation using malloc, when you assign the value to z , should be (*z) , not (z*)
Very easy to digest! Thank you!
We're so glad that you enjoyed your time learning with us! If you're interested in continuing your education and developing new skills, take a look at our course offerings in the description box. We're confident that you'll find something that piques your interest!
Great tutorial. Thanks for it.
You're welcome!
Thanks alot ! I dont know why my teachers didnt explain all this in class...
Happy to help!
The best of dynamic memory
Hope you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!
6:26
How does the computer know how much memory need to be allocated like in this example it allocates 3 MB or it's just a guess.
it was just an example
Stack size is specific to the OS, by default for windows its 1MB and Linux its 10MB.
she did it randomly
What a video and voice !!!
Really , it cleared all my doubts
Thank you so much : ) We are glad to be a part of your learning journey
Thank you 😊
Nice video. Got the hold of concept!
Glad you liked it!
Amazing. Very helpful
Glad it was helpful!
Very good, thank you
Amazing tutorial, thanks!
Glad it was helpful!
Good explanation 👍
Thanks 🙂
I like how you say "" Memery" :D
Thanks for watching our video and sharing your thoughts. Do subscribe to our channel and stay tuned for more. Cheers!
Do you have a C++ presentation on this topic? It was really well done. Thanks.
We don't have any pdf of this particular video. For slides, you can check out our slideshare profile: www.slideshare.net/Simplilearn"
Great video.
Thanks!
Great Video :))
Hey, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
Best tutorial ever
Hello thank you for watching our video .We are glad that we could help you in your learning !
Hello please please can you help c heap memory full cores
🔥
Pascal
Really informative but please stop explaining things like you are reading from a note or a book. Because it feels like you are reading very fast from a book to explain this . I had to play this video slow and go back again and again to understand what you are saying. Please teach naturally to make it clear instead of reading from some notes. Accent is also bit difficult to understand for eg when you say int "n1 and n2". Thanks.
Thanks for watching our video and sharing your thoughts. We’ll strive to do better.
Very good video, thank you very much!
You are welcome!