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?
Can anyone help me understand pointers? I'm really confused about them.
👁️ 4 views💬 1 replies❤️ 0 likes
1 Replies
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?