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

Kevin Baier
Kevin Baier
2,597 Points

Trying to make answer as simple as possible for this challenge, is this too simple or just plain wrong?

float addTwo = (float K, float M)

{

return K + M

}

functions.c
float addTwo = (float K, float M)

{

return K + M

}

2 Answers

Kevin, you are very close to having the correct code! After completing the challenge with your code, all you forgot was a semicolon at the end of your return statement.

If you have any questions, feel free to ask!

Kevin Baier
Kevin Baier
2,597 Points

Dang it all. Thank you for noticing that!

No problem Kevin! If you may, please mark my response best answer so others may see. If you have any more questions, feel free to ask!