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. Managed C++/CLI
  4. (char*& Content) ?

(char*& Content) ?

Scheduled Pinned Locked Moved Managed C++/CLI
question
6 Posts 3 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.
  • S Offline
    S Offline
    Software_Specialist
    wrote on last edited by
    #1

    Hi guys Can any one temme what does this mean void AddtoNode(char*& Content, const char*& Buffer); I am not getting this char*& part. Is it pointer to pointer or wt. Thanks

    Richard Andrew x64R L 2 Replies Last reply
    0
    • S Software_Specialist

      Hi guys Can any one temme what does this mean void AddtoNode(char*& Content, const char*& Buffer); I am not getting this char*& part. Is it pointer to pointer or wt. Thanks

      Richard Andrew x64R Offline
      Richard Andrew x64R Offline
      Richard Andrew x64
      wrote on last edited by
      #2

      I believe it is a "reference to a pointer."

      -------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke

      S 2 Replies Last reply
      0
      • Richard Andrew x64R Richard Andrew x64

        I believe it is a "reference to a pointer."

        -------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke

        S Offline
        S Offline
        Software_Specialist
        wrote on last edited by
        #3

        but what does it mean....?

        1 Reply Last reply
        0
        • Richard Andrew x64R Richard Andrew x64

          I believe it is a "reference to a pointer."

          -------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke

          S Offline
          S Offline
          Software_Specialist
          wrote on last edited by
          #4

          but what does it mean ?

          Richard Andrew x64R 1 Reply Last reply
          0
          • S Software_Specialist

            but what does it mean ?

            Richard Andrew x64R Offline
            Richard Andrew x64R Offline
            Richard Andrew x64
            wrote on last edited by
            #5

            A reference for something means that it can be used anywhere the original can be used, AND any changes to the reference are reflected in the original. So for instance:

            void func( int a, int& b )
            {
            a ++;
            b ++;
            }

            int foo = 5, bar = 5;

            func( foo, bar );

            In this example, foo will remain unchanged because it was passed by value to the function, however, bar will reflect the increment because it was passed by reference.

            -------------------------------- "All that is necessary for the forces of evil to win in the world is for enough good men to do nothing" -- Edmund Burke

            1 Reply Last reply
            0
            • S Software_Specialist

              Hi guys Can any one temme what does this mean void AddtoNode(char*& Content, const char*& Buffer); I am not getting this char*& part. Is it pointer to pointer or wt. Thanks

              L Offline
              L Offline
              lafleon
              wrote on last edited by
              #6

              Hello, It's similar to pointer to pointer (char**). Regards,

              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