c中指针
We have already discussed it in C programming pointers, here I am writing a simple example in C++ programming language to declare, initialize and access the pointers.
我们已经在C编程指针中讨论了它,这里我在用C ++编程语言编写一个简单的示例来声明,初始化和访问指针。
Pointers are the variables (a type of special), which stores the address of another variables.
指针是变量(一种特殊的变量),它存储另一个变量的地址。
Pointers can store address of other normal variable as well as store the address of another pointer variable. The pointer which stores the address of another pointer variable is known as double pointer or pointer to pointer.
指针可以存储其他普通变量的地址,也可以存储另一个指针变量的地址。 存储另一个指针变量的地址的指针称为双指针或指针指针 。
Let's understand both cases through examples...
让我们通过示例来了解这两种情况...