Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTuan Dang
868 Pointspointer question
Why isnt "*letter" in the printf statement returning the address of where the variable is stored. (For example the pictorial representation at 51 seconds in the first video of pointer power, shouldnt *letter be 0X9FFF0?
2 Answers
Jason Anello
Courses Plus Student 94,610 PointsBecause *letter
is de-referencing the pointer. It means, get the value that letter
is pointing to.
letter
stores the memory address
*letter
is the value at that memory address
Tuan Dang
868 PointsThanks! Really appreciate it!