0

Please any one explain it......

Need of Double Pointer?

13th Jan 2022, 5:51 PM
Dipika😊
Dipika😊 - avatar
1 Answer
+ 2
Deepika😊 One of the reasons is when you want to change the value of the pointer passed to a function as an argument, so to do this you require to a pointer to your first pointer.. for example suppose you are writing a function in C to insert an element into a sorted linked list,, at a certain time you may need to insert the element before the head of the list itself, so we need the head which is a pointer to the first element to be changed, to do so you need a pointer to it.. its not only about function arguments, but it’s depend on the problem you are facing and what is the practical use case is !
13th Jan 2022, 7:13 PM
Amine Laaboudi
Amine Laaboudi - avatar