Are pointers important? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Are pointers important?

27th Feb 2019, 7:43 AM
super lazy
super lazy - avatar
2 Answers
+ 4
it is important in terms of reducing search time, the search engine make an index with the keys and what it pointers for. when you query a search, the engine searches only in the index, and then after finding the results they will take you to the object. this you don't need to load evrey thing to the memory in order to search it.
27th Feb 2019, 8:52 AM
Ahmad Ali
Ahmad Ali - avatar
+ 1
Yes. Because you dont send a copy, you send a reference of that object. So in a Pointer is the memory address of that object.
27th Feb 2019, 8:43 AM
M Pax
M Pax - avatar