what are advantages to use pointer? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what are advantages to use pointer?

31st Oct 2016, 3:16 PM
Timur CELIK
Timur CELIK - avatar
1 Answer
+ 2
Pointers provide direct access to memory, a way to return more than one value to the functions, an alternate way to access array elements; it reduces the storage space and complexity, execution time of the program, it can be used to pass information back and forth between the calling function and called function, it performs dynamic memory allocation and deallocation, building complex data structures.
31st Oct 2016, 3:24 PM
Shovan Lal Saha
Shovan Lal Saha - avatar