0 votes
by (160 points)
Why should I use pointers in C++?

1 Answer

0 votes
by (1.3k points)
Pointers are said to "point to" the variable whose address they store. An interesting property of pointers is that they can be used to access the variable they point to directly. This is done by preceding the pointer name with the dereference operator ( * ). The operator itself can be read as "value pointed to by".

Related questions

0 votes
1 answer
0 votes
1 answer
asked Jul 14, 2021 by pointers (160 points)
0 votes
1 answer
asked Jun 26, 2021 by pointertoarray (120 points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Aug 15, 2021 by cpsemail (120 points)
0 votes
1 answer
0 votes
1 answer
asked Nov 27, 2019 by access (200 points)
0 votes
1 answer
0 votes
1 answer
...