+ 2

[DUPLICATE] I try to learn pointers now, but I want to ask, what's the point of using them?

29th Jan 2018, 9:33 PM
Mszak
Mszak - avatar
2 Answers
+ 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
29th Jan 2018, 9:44 PM
Scooby
Scooby - avatar