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

(Whats wrong with my code?)

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.

float real_numbers[5]; printf("Array %ld is %ld bytes\n", real_numbers, siezeof(real_numbers);

5 Answers

Hello,

Miguel is correct. You need to add another ) after the sizeof() function to close the printf() function. Also, you appeared to misspell sizeof => siezeof. If this is the same code you are using, fix those two things and your code should work.

Cheers!

Marvin, you will soon find that the hardest thing about coding is the small typo, the misplaced ; and so on. Try using a "programmers" text editor (something like notepad++, sublimetext or Vim) with "Syntax Highlighting". SH colors your code so if you see a word with the wrong color, you'll know there's something wrong.

Just in case you are starting out.

You could be missing a closing ) in your printf

What class & section is this from?

Thank you guys the cods is working now.