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

iOS Objective-C Basics (Retired) Pointers and Memory Array Size and Length

Code Challenge: Array Size and Length

hey guys am at a loss to what is wrong, no errors come up in preview , the code i have written is as follows:

printf("real_numbers %ld bytes\n", sizeof(real_numbers));

can anyone point out the mistake I've made? keeps coming up with bummer, etc etc

1 Answer

Stone Preston
Stone Preston
42,016 Points

your output string is incorrect:

printf("real_numbers %ld bytes\n", sizeof(real_numbers));

this is what the output needs to look like:

Array real_numbers is x bytes. So you need to add a few words to you string to make it match what the challenge wants