+ 1
C++ Pointers
I don’t think I fully understand, what’s the practical usage of pointers in C++?
4 Respostas
+ 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;