+ 1
C++ Pointers
I donât think I fully understand, whatâs the practical usage of pointers in C++?
4 Answers
+ 10
@Ismail I'd say so. Most of my work which involves pointers, would involve dynamic memory allocation. E.g. Dealing with linked lists, binary trees.
https://www.cprogramming.com/tutorial/lesson18.html
+ 8
https://www.sololearn.com/discuss/951452/?ref=app
https://www.sololearn.com/discuss/200823/?ref=app
https://www.sololearn.com/discuss/915351/?ref=app
+ 1
So itâs mainly for dynamic memory allocation then?
0
@Ismail Hasan
or link to pointer the address of another variable.
int x = 64;
int* y = &x;