*p=a,i 在C++里是啥意思?

2025-04-04 03:24:10
推荐回答(2个)
回答1:

int *a = new int;
int *p = a;
你问题没写好,我自己编了一个。以上两行代码,表示 p 和 a 指向同一块地址。

回答2:

吧a的值付给*p