若指针指向的变量是整形,我们称该指针为指向整形的指针(Pointer to int),例如 int *p;若指针指向的变量是字符型,我们称该指针为指向字符的 指针(Pointer to char),例如char *p;同理,若指针指向的...
基于12个网页-相关网页
Now I'm going to have another pointer to an int.
现在我声明另一个int型指针。
Do not use an int to store a pointer.
不要使用int类型来存储指针。
We now know that this represents a function pointer type that can refer to any method taking a single int argument and returning a string.
我们现在知道了这是一个函数指针类型,它可以引用任何有一个int类型参数并且返回一个string类型的方法。
I'm going to call it x and how do I make a pointer to an int?
我把它叫做x,我怎样声明一个int型指针?
int No. Even though the key word has changed from char to int, the * is the same and the fact that I've got a * there is saying this is a pointer to an int or a pointer to a char pointers are always the same size on a computer.
不,即使即使关键字从char变成了,指针的大小还是一样的,我用*表示这是一个int型指针,而不是char型指针,在同一台机子上,它们的大小是一样的。
Now I'm going to have another pointer to an int.
现在我声明另一个int型指针。
应用推荐