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 Basic Data Types and Variables Numerical Variables

Create an int variable called 'size' with a value of 13

I'm working on the iOS development path. One of the first code challenges is: "Create an int variable called 'size' with a value of 13."

I've tried the following:

int size = 13;

AND

int size = 13

(even though it didn't have the ";", I wanted to check) AND also...

int size;
size = 13;

I'm 99% sure it should be the first one based on the video tutorial I just watched. In fact, I put it into XCode and it ran as expected. The 1st or 3rd one should have worked.

variable_assignment.mm
int size = 13;

Looks like I'm having the same issue on this one... "Create a bool variable named 'isMember' and assign it a value of true. Do this all in one line of code."

This shows as wrong...

bool isMember = true;

I tried similar iterations as the main question.