*Assigning NULL to the temp pointer without freeing the memory it points to beforehand would result in a memory leak.* A memory leak occurs when memory that has been allocated dynamically is not freed before the program terminates or the memory block is no longer needed. In this case, the memory pointed to by temp would still be allocated and not be accessible by the program, leading to memory waste and potential issues in the long run. *Therefore, it's important to free the memory allocated by temp before setting it to NULL to avoid memory leaks.*
This channel deserves more views and subscriptions...
true, but good things get to an individual a bit late only
Thank you so much. Such precise explanation is really helpful and not easy to find even on in internet.
please explain hash tables and tries later in the playlist thank you a lot !.
Please do the continuation of reasoning and aptitude...we are waiting for that..
simple and excellent solution
Sir please upload all the videos, Exam are coming. You upload videos twice a week. Pls sir upload the Complete course
Sir please cover the topics doubly circular linklist🙏
Thank you sir
Is the time complexity O(1)?
What is the code for free() or is it a pre-defined function??
am interested on it. thanks allot. If you are online know send me the algorithm for circular single and double linked list deletion .
what would happen if i assign NULL to temp without using free() function beforehand?
*Assigning NULL to the temp pointer without freeing the memory it points to beforehand would result in a memory leak.*
A memory leak occurs when memory that has been allocated dynamically is not freed before the program terminates or the memory block is no longer needed. In this case, the memory pointed to by temp would still be allocated and not be accessible by the program, leading to memory waste and potential issues in the long run.
*Therefore, it's important to free the memory allocated by temp before setting it to NULL to avoid memory leaks.*
So Nice 💘💘💘💘💘💘