Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Objective-C Basics (Retired) Functional Programming in C Functions

Stage 2 Code Functions

I'm having trouble figuring out this problem. The example that we received to explain function is a integer. What am I missing??

Are we suppose to declare the function? (I'm assuming yes)

Do we start AddTwo as a int or float?

Thanks anyone!

2 Answers

The parameters of that function are floats, and the function returns their sum (which will also be a float). That should give you a clue about how you declare the function.

Thanks Dino,

After searching on-line, I found out I was doing to much. When the question basically wanted me to answer with 3 "statements"

By the way I'm just starting to learn how to program. I'm actually a New York City Apartment Broker and have a great idea for an app the will make everyone's life easier. If you're interested. email: RentSign@gmail.com