Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Objective-C Basics (Retired) Pointers and Memory Arrays, Length, and Size

cam haley
cam haley
1,736 Points

I understand the concept and how it works, but why is this important to learn, when will it be used in programs and why?

I understand the concept and how it works, but why is this important to learn, when will it be used in programs and why?

1 Answer

Dear Friend

Here are some reasons: 1) You can not use arrays as function inputs in C, unlike some other languages. But with pointers you can handle the job done. 2) Sometimes you may directly need to access memory locations. 3) It is impossible create Cuda C (nvcc) codes, which are required for high speed parallel applications. etc. etc.

There should be many many more reasons. I'm not an expert, just a newbie, but you "must" learn about pointers for the sake of "efficient programming". Please correct me if I'm wrong.