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 trialVakishna Thayalan
Courses Plus Student 148 PointsCan 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
Derek Medlin
6,151 Pointsint 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.
- 'int' is the data type.
- 'sum' is the variable name.
- '+' would be the operators.
- expression would be 2 + 3 which would give the variable named "sum", the value of 5.