• USA : +1 973 910 5725
  • INDIA: +91 905 291 3388
  • info@tekslate.com
  • Login

Pointers to Pointer Architecture in C

Pointers to Pointer Architecture with examples

Pointer to pointer:  It is a concept of holding an address of pointer variable in to another variable.

  • Pointer to pointer relations can be applied up to 12 stages but generally there is no any limitation.
  • When we are increasing the pointer to pointer relations, then performance will be decreased.
*  -represent variable address&- represents base address.

Syntax:

Pointer: Datatype *ptr;

p2p: Datatype ** ppt;

P2p2p: Datatype *** ppptr;

 

void main()
{

inti;

int * ptr;
int ** pptr;
int ***pptr;
ptr=&ptr;
pptr=&pptr;
i=10;
}

 

15

 

  1. &i 2 500
  2. ptr 2 500
  3. i 2 10
  4. ptr 210
  5. &ptr 2 600
  6. pptr 2 600
  7. pptr 2500
  8. **pptr 2 10

600 2 500210

 

 

  1. &pptr 2 700
  2. ppptr 2 700
  3. *ppptr 2600
  4. ** ppptr 2 500
  5. *** ppptr2 10

 

*(700)

      ↓

 

*(600)

      ↓

 

*(500)

      ↓

10

 

Summary
Review Date
Reviewed Item
Pointers to Pointer Architecture in C
Author Rating
5

“At TekSlate, we are trying to create high quality tutorials and articles, if you think any information is incorrect or want to add anything to the article, please feel free to get in touch with us at info@tekslate.com, we will update the article in 24 hours.”

0 Responses on Pointers to Pointer Architecture in C"

    Leave a Message

    Your email address will not be published. Required fields are marked *

    Site Disclaimer, Copyright © 2016 - All Rights Reserved.

    Support


    Please leave a message and we'll get back to you soon.

    I agree to be contacted via e-mail.