+ 3

What is the use of pointers?

19th Apr 2019, 6:45 AM
Mansi Goyal❤️
Mansi Goyal❤️ - avatar
1 ответ
+ 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.
19th Apr 2019, 7:09 AM
Devesh Pandey
Devesh Pandey - avatar