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 having trouble starting this code challenge, will someone help me out?

implement a function "add two" that returns two floats

2 Answers

Robert Bojor
PLUS
Robert Bojor
Courses Plus Student 29,439 Points

You can check this question and answer https://teamtreehouse.com/forum/i-cant-resolve-this-code-can-someone-help-me since they are about the same thing - there's also a piece of code that will solve your problem with the challenge.

Joe Williams
Joe Williams
3,459 Points

Ah, I just did this one last night.

I was unsure if I had to add the declaration and the implementation. I did both and it passed. So don't forget both!

Remember, the declaration is before the int main() in the videos. The implementation is the part where you write the code you want your function to perform.

Hope this helps!

Joe