Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
わかりました、私はそれを知っています
int *ptr;
intへの/のポインタです
.
もし私がそうするなら
int i = *ptr;
値へのポインタを逆参照しています
しかし、私の質問は、なぜ使用するのがそれほど一般的なのかということです
そしてそうではない
int* ptr;
代わりは?それらは本質的に同じものですが、最初の例はポインター宣言ではなく逆参照のように見えますが、2 番目の例はポインターの非常に明確な定義です。