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 trial
Colton Whited
516 PointsCode Challenge Task 3 for Pointers under C
My current code challenge task 3 is this Declare an uninitialized char pointer variable named "pointy".
and my answer is this
char *pointy; char alpha = 'k'; *pointy = &'k';
I think I'm right, but I keep getting the bummer message. What's up?
2 Answers
Amit Bijlani
Treehouse Guest TeacherTask 3 states: Assign the variable "pointy" the address of "alpha"
You are right that you can access the address using & but next to it should be the variable alpha and not the letter 'k'. Lastly, when assigning an address to a pointer you don't need to use an asterisk. If you want to understand the pointer stuff a little better then check out the pointer videos in the Beyond the Basics stage.
Colton Whited
516 PointsWow, thanks Amit for answering!! I'm honored!! I look forward to getting to watch your videos!! I have watched the crystal ball into one, and it was super comprehensive in the middle of not much comprehending!! I'm new at all this coding, but it's fun!! I have a dream of creating my own app by this summer!! :)
Amit Bijlani
Treehouse Guest TeacherAnytime. Look forward to seeing you submit your own app :)