0

What is the benefit of pointers in C language ?

3rd Apr 2020, 11:46 PM
Issam Seghir
Issam Seghir - avatar
2 Respuestas
+ 1
They allow you to point to memory locations rather than the values stored in that memory. Essentially, you don't need to use them unless you are working with memory in low level languages like C or C++.
4th Apr 2020, 1:18 AM
Frenchtoast
Frenchtoast - avatar
+ 1
Pointers are special data types that point to an address in memory. Pointers are very beneficial. You can use them to access data that is tedious to access or to swap two values,etc. There are so many uses for pointers, but they can be dangerous if used incorrectly. Experiment and you will find out many cool features about pointers.
4th Apr 2020, 6:40 AM
RinasSam
RinasSam - avatar