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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:40:52+00:00 2026-05-15T08:40:52+00:00

Possible Duplicate: How do pointer to pointers work in C? Hello, Altough I think

  • 0

Possible Duplicate:
How do pointer to pointers work in C?

Hello,

Altough I think I passed the newbie phase in programming I still have some questions that somehow I can’t find them explained. Yes, there are plenty of “how to”s overthere but almost always nobody explains why and/or when one technique is useful.

In my case I have discovered that in some cases a pointer to a pointer is used in C++. Is not a pointer to an object enough? Which are the benefits? Where or when should be used a pointer to a pointer? I feel little bit desorientated in this matter.

I hope time experienced expert could respond to this concerns that hopefully is shared by other no so experienced programers. 😉

Thank you everyone.

Julen.

  • 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-15T08:40:53+00:00Added an answer on May 15, 2026 at 8:40 am

    Well, it is somehow hard to answer to such a general question.

    First answer of a C++ programmer will certainly be : Do not use pointers in C++ ! As you have a lot of safer ways to handle problems than pointers, one of your goal will be to avoid them in the first place 🙂

    So pointers to pointers are seldom used in C++. They are mainly used in C. First, because in C, strings are “char*” so when you need a “pointer to a C string” you end with a “char**”. Second, as you do not have references in C, when you need to have a function that modify a pointer or that give a pointer as an output value, you need to give a pointer to a pointer parameter. You typically find that in functions that allocate memory, as they give you a pointer to the allocated memory.

    If you go the C++ way, try to avoid pointers, you usually have better ways.

    my2c

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

Sidebar

Related Questions

Possible Duplicate: How do pointer to pointers work in C? Hi All, I have
Possible Duplicate: Pointers in java Why java is not using pointer though C# and
Possible Duplicate: checking if pointer points within an array If I have an array
Possible Duplicate: C pointer to array/array of pointers disambiguation In C, is int *thing[5]
Possible Duplicate: Uses for multiple levels of pointer dereferences? I have used functions with
Possible Duplicate: Are there are any platforms where pointers to different types have different
Possible Duplicate: Common Uses For Pointers? I am still learning the basics of C++
Possible Duplicate: Smart pointers/safe memory management for C? I have an embedded application where
Possible Duplicate: C pointer to array/array of pointers disambiguation How is char (*p)[4]; different
Possible Duplicate: C++: When to use References vs. Pointers Could operator overloading have worked

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.