int* i 和 int *i 的区别

int* i 和 int *i 的区别

问题描述:

我正在将用 C 编写的 DLL 的头文件转换为 Delphi,以便我可以使用该 DLL.

I'm converting a header file for a DLL written in C to Delphi so I can use the DLL.

我的问题是

int* i

int *i

我将第一个转换为

i: PInteger;

但我不确定 Delphi 中第二个的正确转换是什么.

But i'm not sure what the correct conversion is for the second one in Delphi.

根据我的理解,第一个是一个简单的类型指针.第二个是指针变量.但我不确定有什么区别.

from my understanding the first is a simple typed pointer. The second is a pointer variable. but i'm not sure what the difference is.

int* iint *i 是完全等价的