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 Arrays

Ok I'm confused about this challenge.

Declare 2 separate variables of type char named "alpha" and "bravo". Assign the letter 'a' to the variable "alpha" and the letter 'b' to "bravo".

I'm struggling to understand the question. The previous exercise showed how to us arrays for a single variable name but this seems to have to separate variable names

3 Answers

figured it out - thanks char alpha = 'a'; char bravo = 'b';


I'm not sure if I follow you here, but the variables alpha and bravo are not arrays (or two names for the same array), but variables of type char. They can only hold a single value - a single character. Arrays can hold several values or variables. Correct me if this is not what you're thinking of or struggling with.

Thanks Eirik, to be honest I'm very new to this and therefore do not understand a lot of it. I think the answer is char alpha = "a" char bravo = "b" but I keep getting an error message when I click the check work button.