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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T08:56:01+00:00 2026-05-26T08:56:01+00:00

I am still trying to understand about doublepointers. I do know how double pointers

  • 0

I am still trying to understand about doublepointers.

I do know how double pointers are usually used in most cases like

void foo(char **ptr)
{
 // blah
}

int main(void)
{
    char *ptr;
    foo(&ptr);
}

However i have no idea what one does differently than the other

int main(int argc, char **argv) //Double pointer

int main(int argc, char *argv[]) // Single
  • 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-26T08:56:02+00:00Added an answer on May 26, 2026 at 8:56 am

    When used as a parameter to a function, an array designator [] is exactly the same as a pointer. The two declarations you have for main are in fact identical.

    There are times when the two different syntaxes mean different things, but this isn’t one of them.

    In this case it means you have an array of pointers. Each pointer points to an array of characters. argv[0] is a pointer to the first char* string, argv[1] is a pointer to the second char* string, etc.

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

Sidebar

Related Questions

I'm still trying to get a better understanding of Interfaces. I know about what
I am trying to understand few things about using dylib and still studying, so
I am still learning C++ and trying to understand it. I was looking through
I'm still trying to get a hang of Perl's OOP features. I'm confused about
I'm still trying to understand KeyValuePairs but I believe this idea should work. In
I'm trying to understand the syntax used in STL for a class. Our teacher
I am trying to learn about combinators and I am having trouble understand the
Bit flags are a little difficult to understand :) I know about this and
I've been trying to read and understand a bit more about better code and
Okay, I have read about regex all day now, and still don't understand it

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.