Pointers: What does ***a mean?

K Harish Naidu

K Harish Naidu

@k-harish-naidu-zxTWaT Oct 13, 2024
is there any meaning for this: ***a

Replies

Welcome, guest

Join CrazyEngineers to reply, ask questions, and participate in conversations.

CrazyEngineers powered by Jatra Community Platform

  • xxxabhash007

    xxxabhash007

    @xxxabhash007-zWy2nM Aug 30, 2010

    Re: pointers

    ***a means pointer to a pointer to pointer.
    This means 'a' is pointer variable which holds address of another pointer which holds address of another variable which holds the actual value.
  • K Harish Naidu

    K Harish Naidu

    @k-harish-naidu-zxTWaT Aug 30, 2010

    ok. can u give examp;e how exactly it is used
  • BCA_GIRL

    BCA_GIRL

    @bca-girl-wzX9cA Aug 30, 2010

    Here is the example for ***
    #include<iostream.h>
    #include<conio.h>
    void main()
    { int i=10,*j,**k,***s;
    j=&i;
    k=&j;
    s=&k;
    cout<<***s; [This will print 10]
    cout<<"\n"<<**(&s); [This will print the address of k, means to say the address stored in s)
    getch();
    }
  • xxxabhash007

    xxxabhash007

    @xxxabhash007-zWy2nM Aug 30, 2010

    Are you clear with the given example or you need more explaination.