Where are double pointer used and how they work in C and why pointer concepts are not there in interpreted language? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Where are double pointer used and how they work in C and why pointer concepts are not there in interpreted language?

18th Jul 2021, 4:34 PM
AKHIL HADLI
AKHIL HADLI - avatar
2 Answers
+ 1
If you know how pointers with single pointer works, then its pretty much the same with double pointers. It just pointer to a pointer. More detailed visualized explanation: https://www.tutorialspoint.com/cprogramming/c_pointer_to_pointer.htm Every languages have pointers because every languages need to interact with the memory. But the only difference is that in pointer-free languages there is "automatic memory management"(garbage collector) so we don't have to worry much on how to handle and implement pointers. While on the other hand, languages with pointers give us the chance to play and handled memory of our own. So in such a language, usually the programmer is the garbage collector themselves. This is just a brief idea and what I think.
19th Jul 2021, 6:36 AM
Rohit
0
In Languages like PYTHON, java and C# you doesn't need to interact with memory because of garbage collector. That is why you doesn't need pointers in those languages. Double pointer points to another pointer.
20th Jul 2021, 4:43 AM
🌀 Shail Murtaza شعیل مرتضیٰ
🌀 Shail Murtaza شعیل مرتضیٰ - avatar