Explain "passing by value", "passing by pointer" and
"passing by reference" ?
Answer Posted / roshanpr
During pass by value a duplicate copy of the parameters
passed are created. Any changes made to copy will not
reflect the actual parameters.
In pass by pointer(it called as pass by address) duplicate
copy is not created. and any chagnes made to copy will
reflect in actual parameters also.
| Is This Answer Correct ? | 10 Yes | 1 No |
Post New Answer View All Answers
What is c++ & why it is used?
Can we use struct in c++?
Explain the uses oof nested class?
Does a derived class inherit or doesn't inherit?
How does list r; differs from list r();?
Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).
How many characters are recognized by ANSI C++?
What is general form of pure virtual function? Explain?
Is it possible to provide default values while overloading a binary operator?
What is format for defining a structure?
What is an associative container in c++?
What are the types of pointer?
What is the v-ptr?
What is static function? Explain with an example
What is lvalue?