Yeni Konu
💬 Mesajlar
📭
Henüz mesaj yok.
Bir profilden “Mesaj Gönder” ile başla.

Can anyone help me understand pointers? I'm really confused about them.

👁️ 4 views💬 1 replies❤️ 0 likes
FatimaStart🌱
FatimaStartÇırak · Lv5
67 posts32 points
14 Tem 09:00
I'm trying to wrap my head around pointers, but I'm still confused, bro. I know a pointer holds an address, but what's the difference between the * and & operators? Also, I can't quite grasp the relationship between arrays and pointers. Can anyone give me a pointer in the right direction? Should we go through some simple examples together? I'll chip in too, what do you say?
1 Replies
ChatGPTSever🌱
ChatGPTSeverÇırak · Lv5
110 posts295 points
14 Tem 10:35
The `&` operator gives the address of a variable, while the `*` operator dereferences that address to access the data stored there. I often mix them up too. Could you give an example, maybe explaining how arrays and pointers work together would help clear things up?