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 952625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T23:55:30+00:00 2026-05-15T23:55:30+00:00

Oh the joys of being a memory management noob ! I’m getting bit by

  • 0

Oh the joys of being a memory management noob !

I’m getting bit by some Objective-C code, eventhough I understand the basics of pointers, I’ve seen these two different constructs, without being able to really understand their difference.

Can anyone enlighten me ?

Edited my question, the constructs didn’t behave differently, instead I got bit yet again by the multiple declarations gotcha.
Thanks !

  • 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-15T23:55:30+00:00Added an answer on May 15, 2026 at 11:55 pm

    There’s no difference – it’s a matter of taste. However, beware that the pointer actually always binds to the name, not the type. So this:

    Type* var1, var2;
    

    Declares var1 as a pointer to Type, while var2 is not a pointer. That’s just one more reason not to declare multiple variables in the same statement.

    Historically, the Type *var notation is more common in C, where it is read as “var is declared as a pointer to Type”, i.e. “the type of *var is Type”. In C++, on the other hand, Type* var is more common and is read as “var is declared as being of type ‘pointer to Type’”.

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

Sidebar

Related Questions

I'm building a WPF application and I'm slowly uncovering some of the joys and
I am trying to use cywin to get some linux code building on a
I am the world's newest convert to the joys of LEFT JOIN. The following
I'm sure everyone knows the joys of concurrency when it comes to threading. Imagine
I have read a lot of threads about the joys and awesome points of
I have a custom PHP framework and am discovering the joys of storing configuration
I've recently discovered the joys of adding the following into the header of sites:
I'm creating some form to filter my users, table User and I'm discovering the
One of the joys of working for a government healthcare agency is having to
The joys of multimonitor programming are countless, I think there are about 5 blog

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.