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 trialGarrett Fortner
1,460 PointsChallenge error.
Currently in Pointers and Memory and the first challenge is giving me some trouble. Question 2 asks me to print the size of the bytes taken up by real_numbers. So I use printf to print out printf("Array real_numbers is %ld bytes.", sizeof(real_numbers)); The next challenge task asks me to print out how many items real_numbers can hold. So I type: printf("Array real_numbers can hold %ld items.", sizeof(real_numbers)/sizeof(float)); It then tells me Task 2 is no longer marked as correct. What is going on?
1 Answer
Garrett Fortner
1,460 PointsSilly question, Disregard. I didn't realize it wanted me to print out 2 separate lines of output. One for bytes and one for the items.