🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

pointer addresses

Started by
0 comments, last by frizb 24 years, 5 months ago
Easy question. When a pointer points to a structure, does it hold just the address of the first data member or does it hold the address for each data member For instance: struct POINT { int x; int y; } What would a pointer hold? Just the base address? Still Learning...
Still Learning...
Advertisement
Just the base address, which is the pointer to the first variable in the struct.

This topic is closed to new replies.

Advertisement