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

Sam Weiss
Sam Weiss
2,260 Points

can't fig it out

not quite sure what i am doing wrong last challenge of functions

2 Answers

Stone Preston
Stone Preston
42,016 Points

here is a shell of what your function should look like:

returnType functionName(datatype arguementOne, datatype argumentTwo) {

return something;

}

the challenge tells you it should return a float, what the function should be named, that the arguments are both floats, and it shoudl return the sum of the arguments passed in

Sam Weiss
Sam Weiss
2,260 Points

Wow-this site is great Thanks so much Stone.

Sam,

Not sure either. You'll have to post code, explain your problem with specifics, and point out the part that's a problem. I highly recommend the "Tips for asking questions" video you see at the right of this page.