+ 2
[DUPLICATE] I try to learn pointers now, but I want to ask, what's the point of using them?
2 Answers
+ 21
https://www.sololearn.com/discuss/199279/?ref=app
https://www.sololearn.com/discuss/84131/?ref=app
https://www.sololearn.com/discuss/734060/?ref=app
https://www.sololearn.com/discuss/951452/?ref=app
https://www.sololearn.com/discuss/132932/?ref=app
https://www.sololearn.com/discuss/8357/?ref=app
https://www.sololearn.com/discuss/1015744/?ref=app
+ 6
A pointer is a variable that holds a memory address where a value lives. A pointer is declared using the * operator before an identifier. As C++ is a statically typed language, the type is required to declare a pointer. This is the type of data that will live at the memory address it points to