Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. pointer of pointer(char** ch)

pointer of pointer(char** ch)

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Ahmad
    wrote on last edited by
    #1

    HI ALL :) pointer of pointer(char** ch) some times I see this this(char** ch) for example in (strtod) function it's strang kind of pointer can you tell me about this kind of pointer THANK YOU AHMAD ALWASHALI

    D 1 Reply Last reply
    0
    • A Ahmad

      HI ALL :) pointer of pointer(char** ch) some times I see this this(char** ch) for example in (strtod) function it's strang kind of pointer can you tell me about this kind of pointer THANK YOU AHMAD ALWASHALI

      D Offline
      D Offline
      Datacrime
      wrote on last edited by
      #2

      What more can i say expept that it's a pointer that points to a pointer. 8-) It's used -usually- when you want a function to return a pointer through it's arguments.

      void GetPointer(char** ppChar)

      In that case you call the function by passing the address of the pointer.

      char MyChar='A';
      char* pMyChar=&MyChar;
      GetPointer(&pChar);

      - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

      A 1 Reply Last reply
      0
      • D Datacrime

        What more can i say expept that it's a pointer that points to a pointer. 8-) It's used -usually- when you want a function to return a pointer through it's arguments.

        void GetPointer(char** ppChar)

        In that case you call the function by passing the address of the pointer.

        char MyChar='A';
        char* pMyChar=&MyChar;
        GetPointer(&pChar);

        - - - - - - - - - - - - - - - - - - Memory leaks is the price we pay \0 01234567890123456789012345678901234

        A Offline
        A Offline
        Ahmad
        wrote on last edited by
        #3

        Thank you very much AHMAD ALWASHALI

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups