double pointer

Discussion in 'C' started by anilk501, Mar 5, 2007.

  1. anilk501

    anilk501 New Member

    Joined:
    Oct 3, 2006
    Messages:
    16
    Likes Received:
    0
    Trophy Points:
    0
    what is use of double paointers and give me some example in real wolrd application
     
  2. DaWei

    DaWei New Member

    Joined:
    Dec 6, 2006
    Messages:
    835
    Likes Received:
    5
    Trophy Points:
    0
    Occupation:
    Semi-retired EE
    Location:
    Texan now in Central NY
    Home Page:
    http://www.daweidesigns.com
    I presume you mean a pointer to a pointer, and not a pointer to a double type. Here's a non-programming example: You ask me for contact information for a plumber. I point you to the phone book. The phone book points you to the plumber. A programming example would be a 2D pseudo-array gotten from the heap one row at a time. To access a given element, one would provide a pointer to the row pointer, which would then be dereferenced to get the element.
     
  3. wrecker

    wrecker New Member

    Joined:
    Mar 12, 2007
    Messages:
    40
    Likes Received:
    0
    Trophy Points:
    0
    was a very nice and self explanatory example DaWei. Thanks
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice