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

  • SEARCH
  • Home
  • 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 366603
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T13:38:55+00:00 2026-05-12T13:38:55+00:00

What does the & symbol mean in Objective-C? I am currently looking at data

  • 0

What does the & symbol mean in Objective-C? I am currently looking at data constucts and am getting really confused by it.

I have looked around the web for it but have not found an answer at all. I know this is possibly a basic Objective-C concept, but I just can’t get my head around it.

For example:

int *pIntData = (int *)&incomingPacket[0];

What is the code doing with incoming packet here?

  • 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-12T13:38:55+00:00Added an answer on May 12, 2026 at 1:38 pm

    & is the C address-of unary operator. It returns the memory address of its operand.

    In your example, it will return the address of the first element of the incomingPacket array, which is then cast to an int* (pointer to int)

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

Sidebar

Related Questions

does anybody have any experience writing up a offline data storage & access app
Possible Duplicates: Reference - What does this symbol mean in PHP? what do “=&”
Possible Duplicate: What does map(&:name) mean in Ruby? What does the &:valid? found in
In a C++ function like this: int& getNumber(); what does the & mean? Is
does Android have a best practices guideline on creating & populating the db/tables programmatically
What does this line (x = n & 5;) mean in the code below?
I have a ColdFusion script that does: <cfset content = replace(content,&##147;,,all)> Which replaces &147;
Possible Duplicate: What does map(&:name) mean in Ruby? Ruby/Ruby on Rails ampersand colon shortcut
Possible Duplicate: What does map(&:name) mean in Ruby? I was watching a railscast and
Possible Duplicate: Reference - What does this symbol mean in PHP? The third line

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.