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
Lachlan Mitchell
9,278 PointsMistake in an 'Objective-C Basics' Code Challenge
Hey! This is just a heads up for the treehouse developers...
In the 'Array Length' code challenge of 'Stage 3, Objective-C Basics', there's a problem with task 2 of 3.
Using the printf function print the size in bytes of the variable "real_numbers". Your output should look like the following: "Array real_numbers is x bytes."
For my response I would add (after the array created in the previous task):
printf("Array real_numbers is %ld bytes.", sizeof(real_numbers));
%ld because that is what we were taught to use in the prior video. Unfortunately, that won't pass because the question is expecting %lu for a long type value, which we wouldn't have any idea about.
Hope that helps you get it fixed! Thanks! The new course is fantastic.
2 Answers
Amit Bijlani
Treehouse Guest TeacherThanks for pointing that out. I have updated it.
Lachlan Mitchell
9,278 PointsNice work :)
Jeremy Gray
1,322 PointsI experienced similar problem on Variables section of Fundamentals of C code challenge. Third challenge has you create a printf statement. I believe I entered the right code, as I tested it out in Xcode and got right answer, but on treehouse I keep getting an error message. Also, why are there no hints like on code school? Sometimes you just don't know the answer and treehouse will not help you or let you skip.
Amit Bijlani
Treehouse Guest TeacherYou should be seeing hints as well as compiler error messages when you hit the preview button. What was the problem you experienced with the Variables code challenge? I'd love to know so I can fix it.
James Barnett
39,199 Points@Jeremy Gray -
> Also, why are there no hints like on code school? Sometimes you just don't know the answer and treehouse will not help you or let you skip.
Check out this thread for some perspective on the topics of hints in the code challenges
You might be interested in
James Barnett
39,199 PointsJames Barnett
39,199 Pointstagging Amit Bijlani on this one