Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6198247
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:57:49+00:00 2026-05-24T03:57:49+00:00

Please, don’t misunderstand the question. I know that implementation of the pointers in these

  • 0

Please, don’t misunderstand the question. I know that implementation of the pointers in these two languages is identical, as C is a subset of Objective C.

My question is about the actual use of pointers in real code. Are best practices different? What is done differently and why? What should I keep in mind when I learn about pointer usage in C, if I actually want to use that knowledge in Objective C environment?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T03:57:50+00:00Added an answer on May 24, 2026 at 3:57 am

    Pointers in objective-c are really used for a subset of what they’re used for in C: Passing around references to objects, and returning by reference. Occasionally, you’ll find methods which take function pointers accepted as arguments, and void* pointers are sometimes used to provide context in callbacks, although both of these are gradually being replaced by blocks.

    Unlike in C, they are generally not used to reference arrays or strings, or as iterators. You’ll generally not use pointers in memory management (malloc/free, etc.) as this is all handled by the system frameworks.

    Edit:
    You can find an function pointer & block-based methods accomplishing the same task in NSArray’s sortedArrayUsingFunction:context: and sortedArrayUsingComparator:. The same basic principle applies to callbacks — compare Mike Ash’s block-based KVO methods to Cocoa’s built-in ones.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

please don't mind my question since I don't know much about software because I
I know this is a rather odd question, please don't flame me :) I
Please don't answer the obvious, but what are the limit signs that tell us
Now, I know this is completely subjective, so please don't flame me. I've never
Please don't mind that there is no insert fnc and that data are hardcoded.
I am new to Python so please don't flame me if the question is
I have a bunch of php arrays that look like this (please don't ask
I don't mean for this to be inflammatory, so please don't take it that
I know it will sound strange but please don't mind: In C#, let's say
I'm new to working with MVC so please don't assume I know anything. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.