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) Pointers and Memory Pointer Power

Soumyadeep Ganguly
Soumyadeep Ganguly
1,472 Points

Pointer Power Video Question

At the end of the video when Doug shows us how to use pointers in an array, he introduces a new reference " %s ". Somehow, the explanation behind using the reference point was missed by him during the video.

Can anyone please explain to me what "%s" refers to exactly?

Thank you.

2 Answers

That's the format specifier for printf to print a string (in other words, a character array).