I love that Neso often briefly revisits older topics as they become relevant to the current one in the video. Thank you so much for that extra effort in your lectures. It really helps tie all the material together to solidify a complete understanding. Great job!
Thanks for the video, it's very well explained! I'd just add something important which is always remember to free the memory one we have used the variable and we won't do anything else with it. This is done with the 'free(variable)' function. Why, you'd ask? Malloc won't do it for us, it's not automatic like in happens in the static memory. So if we don't free the memory, it'll stay active indeterminately. This is called a 'memory leak' and if we're not careful it can accumulate or sometimes even filling all the memory available, leading to OS bugs or crashing the program. So again, that's why it's a good practice to always free the memory once we've used it.
What a fabulous explanation, based on that 4 pages of A4 size, i wrote down it completely, Now i understood what is malloc and how it work internally. Thank you sir for sharing this valuable information, this is help me a lot.
I think u are getting so much of love and happiness from ur beautiful work....I heartfully thanking you....u are really best teacher and u propogating ur knowledge to ur own mother earth family... thank you sir...I am happy with ur work...
my english is not so good but the way you are teaching its really amazingg i didn't even understand the concept of malloc on other channels which are in hindi
You don't need to cast before malloc. It is unnecessary, as void * is automatically and safely promoted to any other pointer type in this case. It adds clutter to the code, casts are not very easy to read (especially if the pointer type is long). It makes you repeat yourself, which is generally bad. It can hide an error if you forgot to include . This can cause crashes (or, worse, not cause a crash until way later in some totally different part of the code). Consider what happens if pointers and integers are differently sized; then you're hiding a warning by casting and might lose bits of your returned address. Note: as of C99 implicit functions are gone from C, and this point is no longer relevant since there's no automatic assumption that undeclared functions return int.
In last for loop you have write *(ptr+i) and this display the value (which was wrote by you before from keyboard). Please tell me what display &*(ptr+i).
This small program contains so many complex concept to understand this program completely. You need to understand how Address arithmetic for p+1 You need to understand how *(p+1) is working. This program requires understanding of pointers in great detail. Thanks for the video. 🙏
Is it like we are creating first block of memory using malloc() and then using pointer we will accessing the next memory location for storing the 2, 3... Variable values in those locations? Is it the concept which is explained in this program? Please explain Sir
nice voice command that attracts the audience to stay focused ....
thats his real voice i think
True
Agree
True
I love that Neso often briefly revisits older topics as they become relevant to the current one in the video. Thank you so much for that extra effort in your lectures. It really helps tie all the material together to solidify a complete understanding. Great job!
you channel is a gem .
Thanks for the video, it's very well explained! I'd just add something important which is always remember to free the memory one we have used the variable and we won't do anything else with it. This is done with the 'free(variable)' function.
Why, you'd ask? Malloc won't do it for us, it's not automatic like in happens in the static memory. So if we don't free the memory, it'll stay active indeterminately. This is called a 'memory leak' and if we're not careful it can accumulate or sometimes even filling all the memory available, leading to OS bugs or crashing the program.
So again, that's why it's a good practice to always free the memory once we've used it.
I can't thank you enough neso for these amazing lectures..🧡🙏🧡
Neso is the best Dear ❤
Best channel for CS students.
I was searching for this type of explanation.
This tutorial made me totally clear about the concept.
Thank you.
superb voice, intonation, explanation. Altogether superb video. 👌🙏
You are a life saver. Thanks neso academy ❤❤
Great work!
Excellent pedagogy and teaching style!!!
Gratitude...
Straight to the point, it doesn't get any better than this! Thank youuu bro
god-tier tutorial. you are a hero
Phenomenal video and the tone of voice actually helps understand which part is very important to understand. 👍🏼
Still watching your videos since my first year of uni. Now in my final semester. Thank you sir!
the way he teaches concepts is excellent and thankyou for such good presentation
i really appreciate your calm and intelligence while explaining thanks a lot
Probably the best explanation !!!
Good job sir !
What a fabulous explanation, based on that 4 pages of A4 size, i wrote down it completely, Now i understood what is malloc and how it work internally. Thank you sir for sharing this valuable information, this is help me a lot.
your way of telling and describing is amzaing NASO..
#very helpfull video thx a lot
Your explanation is awesome 🧡
On the point and crisp thank you for this video!
Thank you very much! I have a hard time understanding this in our lectures. But you make it so easy to understand.
rothschild CLAN FR FR?????!!!
Crystal clear. Thank you. ☺️
Sir I love the way you teach, after watching your video, there is no room for doubts.
Finally understood what it is after a long search
Without u i really can't understand c programming thanks for the lecture
Best channel 💯💯💯 for Programming..... ❤️❤️
Thank you.,the best part is you came with a example...keep going ❤️❤️
Thanks sir
I am able to understand each and every concept very clearly..
Hats off to you sir
I think u are getting so much of love and happiness from ur beautiful work....I heartfully thanking you....u are really best teacher and u propogating ur knowledge to ur own mother earth family... thank you sir...I am happy with ur work...
my english is not so good but the way you are teaching its really amazingg i didn't even understand the concept of malloc on other channels which are in hindi
You are a C god!
you are great. god bless you
Explained so clearly.. Thank you very much!
excellent video sir
Keep making these videos to help STUDETNS!!
this was all i needed in a dma lecture
no.1 place to learn C....NESO Academy
I appreciate you guys SO MUCH
Thank you so much for your detailed and clear explanation. It was very helpful and understandable.
Wow What an Explanation @NesoAcademy........
Thank You Sir For All The Lectures C lang, and Data Structure ❤❤
no, thank YOU Mr. Neso for making this simple and easy-to-understand video. After you explained it, it was obvious really. ok. Love you. bye bye now.
Much needed explanation! Thank youuuu
Superb lecture 🥰🥰
I want to give 1000 likes for this video.
i know its HARD but please Complete DS videos ASAP ! i'm just relying on you for my DS. THANK YOU.
Excellent!
I've finally understood!!!!
As simple as that
love you man
Thank you for clearing my concept.
Thanks alot.
Good quality video. Nice voice for narrating man!
Thank you so much. You explained it really well.
Salute your hardworking😍😍😍🥰
very carefully explained. thank you.
I was waiting for this.
very nice explanation
Very clear explanation. Thank you :)
So preety good channel having point to point presentations, dulcet and clear voice and nice content!!! ;)
Thank you for explaining this so clearly :)
if (ptr == NULL){
printf("memory not available:");
exit(1);
}: this block is causing error ; once i remove it everything is perfect
help :)
Superb! in one word
Sirr you are absolutely stunning ✨✨..
oh wow !! thank you so much. 😍i didnt understand anything my teacher taught but this video cleared all the concepts..
Thanks for the explanation
You don't need to cast before malloc.
It is unnecessary, as void * is automatically and safely promoted to any other pointer type in this case.
It adds clutter to the code, casts are not very easy to read (especially if the pointer type is long).
It makes you repeat yourself, which is generally bad.
It can hide an error if you forgot to include . This can cause crashes (or, worse, not cause a crash until way later in some totally different part of the code). Consider what happens if pointers and integers are differently sized; then you're hiding a warning by casting and might lose bits of your returned address. Note: as of C99 implicit functions are gone from C, and this point is no longer relevant since there's no automatic assumption that undeclared functions return int.
Great Explanation!!! Thanks...
Too good explanation
malloc allocates a single large block of memory where calloc allocates sequential blocks of memory
brother, firstly thanks for everything you make.
second i want to do some tasks on C language, so where can i find tasks and solve it.
explain ..very excellent
very helpful
Superb LECTURES with amazing way of delivering concepts. :)
In last for loop you have write *(ptr+i) and this display the value (which was wrote by you before from keyboard). Please tell me what display &*(ptr+i).
Ultimately superb 👌👌
One word : Thanx . No three : thanx very much
You are the best!
thank you so much! really appreciate your effort!
I there any lecture notes or handout for that awesome lecture ?
Thanks a lot , concept made easy
thanks bro!
what is the name of your compiler??please suggest me one for c programming??
and here we got the neso
Thank you so much for your video!!!
Thanks very useful..
A very informative video too much 😇😇😇
this video really helped a lot
Great explanation, Thanks a lot bro
Just precise!
❤Easily understandable
Good explanation....
This small program contains so many complex concept to understand this program completely.
You need to understand how
Address arithmetic for
p+1
You need to understand how *(p+1) is working.
This program requires understanding of pointers in great detail.
Thanks for the video. 🙏
would u also take lectures of Java language ? pleasseee sirr
Thankyou so much sir
Is it like we are creating first block of memory using malloc() and then using pointer we will accessing the next memory location for storing the 2, 3... Variable values in those locations? Is it the concept which is explained in this program? Please explain Sir
Tqs a Lott🙂🙂 my teacher💞 u r my teacher whether u not in front of me but I learning from u teacher
thank you for your lecture. but shouldn't the program contain free(ptr) at the end? the memory is allocated at heap, but is not freed after
Thankyou sir❤
Nice voice sir
Thank you sir