c++ doubt...
-
can any one help me...(very urgent)
In c++, what is the difference between call by value, call by reference and call by address?
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] -
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] -
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?
-
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] -
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?
-
can any one help me...(very urgent)
In c++, what is the difference between call by value, call by reference and call by address?
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
-
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
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
-
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
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
-
can any one help me...(very urgent)
In c++, what is the difference between call by value, call by reference and call by address?
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