+ 3
What is the use of pointers?
2 Respostas
+ 3
A pointer is a variable that holds a memory address where a value lives. Apointer 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.