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) Fundamentals of C Operators and Expressions

Can someone please explain Operators and Expressions?

It's really hard for me to understand the last episode of stage 1 in iOS development.

1 Answer

int sum = 2 + 3;

The plus sign ('+') would be the operator and the expression is basically what is used to define what the variable would be.

  1. 'int' is the data type.
  2. 'sum' is the variable name.
  3. '+' would be the operators.
  4. expression would be 2 + 3 which would give the variable named "sum", the value of 5.