+ 1
What is the use of pointers ? Language c++
Pointers benefits
7 Respostas
+ 2
To hold the address of variables/objects. This is mostly useful in C where function arguments are passed by value and you want to change a variable which may also be a data structure from within the function. In C++, arguments can also be passed by reference without the need for pointers in this case.
0
What do you mean by changing a variable ? Does this mean that pointers are used to change variables in different ways
0
Martin Taylor please can you give a brief code example from this explination.
0
C++ ?