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. Other Discussions
  3. IT & Infrastructure
  4. c++ doubt...

c++ doubt...

Scheduled Pinned Locked Moved IT & Infrastructure
questionc++help
10 Posts 6 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.
  • C Offline
    C Offline
    cst_kvp
    wrote on last edited by
    #1

    can any one help me...(very urgent)

    In c++, what is the difference between call by value, call by reference and call by address?

    CPalliniC P realJSOPR 3 Replies Last reply
    0
    • C cst_kvp

      can any one help me...(very urgent)

      In c++, what is the difference between call by value, call by reference and call by address?

      CPalliniC Online
      CPalliniC Online
      CPallini
      wrote on last edited by
      #2

      cst_kvp wrote:

      (very urgent)

      Of course.

      cst_kvp wrote:

      In c++, what is the difference between call by value, call by reference and call by address?

      Did you try Google? :)

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      In testa che avete, signor di Ceprano?

      C 1 Reply Last reply
      0
      • CPalliniC CPallini

        cst_kvp wrote:

        (very urgent)

        Of course.

        cst_kvp wrote:

        In c++, what is the difference between call by value, call by reference and call by address?

        Did you try Google? :)

        If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
        This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
        [My articles]

        C Offline
        C Offline
        cst_kvp
        wrote on last edited by
        #3

        yes i tried. but didn't display the correct result for my question.. can you tell?

        B CPalliniC 2 Replies Last reply
        0
        • C cst_kvp

          yes i tried. but didn't display the correct result for my question.. can you tell?

          B Offline
          B Offline
          blackjack2150
          wrote on last edited by
          #4

          There you go: http://www.learncpp.com/cpp-tutorial/74a-returning-values-by-value-reference-and-address/[^] Found it by searching for "value reference address C++". That wasn't so hard, was it?

          C 1 Reply Last reply
          0
          • C cst_kvp

            yes i tried. but didn't display the correct result for my question.. can you tell?

            CPalliniC Online
            CPalliniC Online
            CPallini
            wrote on last edited by
            #5

            A good C++ book will do. :)

            If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
            This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
            [My articles]

            In testa che avete, signor di Ceprano?

            1 Reply Last reply
            0
            • B blackjack2150

              There you go: http://www.learncpp.com/cpp-tutorial/74a-returning-values-by-value-reference-and-address/[^] Found it by searching for "value reference address C++". That wasn't so hard, was it?

              C Offline
              C Offline
              cst_kvp
              wrote on last edited by
              #6

              thanks a lot

              1 Reply Last reply
              0
              • C cst_kvp

                can any one help me...(very urgent)

                In c++, what is the difference between call by value, call by reference and call by address?

                P Offline
                P Offline
                Paul Conrad
                wrote on last edited by
                #7

                cst_kvp wrote:

                (very urgent)

                That's very impolite.

                cst_kvp wrote:

                what is the difference between call by value, call by reference and call by address?

                Pretty obvious. What does it sound like to you?

                "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                B 1 Reply Last reply
                0
                • P Paul Conrad

                  cst_kvp wrote:

                  (very urgent)

                  That's very impolite.

                  cst_kvp wrote:

                  what is the difference between call by value, call by reference and call by address?

                  Pretty obvious. What does it sound like to you?

                  "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                  B Offline
                  B Offline
                  bilal haider 0
                  wrote on last edited by
                  #8

                  Hello everybody! In my understanding In pass by value new copy is created. In pass by reference is passed but this reference does not occupy space in memory. in pointer address is stored inside a pointer and then this pointer variable is passed. This new variable take space in memory. Pointer can be a null-pointer while a reference always refers to a valid object. Linkhttp://www.go4expert.com/forums/showthread.php?t=5492[^] Any mistake? please clear my understanding. Thanks. :)

                  modified on Friday, July 18, 2008 1:29 AM

                  P 1 Reply Last reply
                  0
                  • B bilal haider 0

                    Hello everybody! In my understanding In pass by value new copy is created. In pass by reference is passed but this reference does not occupy space in memory. in pointer address is stored inside a pointer and then this pointer variable is passed. This new variable take space in memory. Pointer can be a null-pointer while a reference always refers to a valid object. Linkhttp://www.go4expert.com/forums/showthread.php?t=5492[^] Any mistake? please clear my understanding. Thanks. :)

                    modified on Friday, July 18, 2008 1:29 AM

                    P Offline
                    P Offline
                    Paul Conrad
                    wrote on last edited by
                    #9

                    That is precisely so.

                    "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

                    1 Reply Last reply
                    0
                    • C cst_kvp

                      can any one help me...(very urgent)

                      In c++, what is the difference between call by value, call by reference and call by address?

                      realJSOPR Offline
                      realJSOPR Offline
                      realJSOP
                      wrote on last edited by
                      #10

                      you forgot "call by telephone"

                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                      -----
                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                      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