Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Pointers and memory


I have problem with the next exercise: Print the length of the array real_numbers using the sizeof() function. Your output should look like the following: Array real_numbers can store x items.

My code run fine when I compile the code with gcc. My code is:

float real_numbers[5];
printf("Array real_numbers can store %ld items", sizeof(real_numbers)/sizeof(float));

but your system said me: Oops! It looks like Task 2 is no longer passing.

What's wrong? Can somebody help me? Thanks a lot.

3 Answers

Ramon Kleiss
Ramon Kleiss
977 Points

You have to add another printf for task 3. Not replace the printf from task 2. I found that out yesterday the hard way too.

Jesus Christ!! thanks a lot!!