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) Functional Programming in C Functions

I'm so confused

I don't know what I'm doing wrong... The instructions say that it doesn't need the int main() part of the program, but don't all programs begin like that? I'm just a little upset because I've been sitting here for over 3 hours trying to figure out what this objective wants of me. I keep on going back to the video and trying to understand what it is. I've even written it down on a piece of paper, but I'm not sure exactly what it wants now.

addTwo (float a, float b); { float a = 2; float b = 3; } add Two(float a, float b) { return a + b; }

shouldn't that be it?

5 Answers

Patrick Donahue
Patrick Donahue
9,523 Points

This issue is all around the forum - there seems to be an issue with the challenge. You have the right answer. Move on and when the issue is fixed go back and do it to get your points. :-)

Holger Liesegang
Holger Liesegang
50,595 Points

Hi Justyn,

float addTwo (float a, float b) {
return a + b;
}

would be ok but there ist a problem with the challenge at this very moment and you might want to have a look at Functions challenge

Kind Regards Holger

Patrick Donahue
Patrick Donahue
9,523 Points

Whoops - I misread his answer. Either way there has been an issue with that challenge.

Holger Liesegang
Holger Liesegang
50,595 Points

Just move on with the course and then face the challenge at a later time.

...and of course Welcome at Treehouse, Justyn Huang :)

Oh sweet really?? I was getting pretty stressed... Okay Thanks!

Wait... except I can't move on until I solve this problem....

Yes you can. GO to the tracks and click pointers an memory. Start the first lesson in pointers and memory.