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 are advantages of c++?
Is it possible to write a c++ template to check for a function's existence?
What is a flag in c++?
What is searching? Explain linear and binary search.
What is a friend function in c++?
Differentiate between late binding and early binding. What are the advantages of early binding?
What are the advantages of using const reference arguments in a function?
How are the features of c++ different from c?
write a corrected statement so that the instruction will work properly. if (4 < x < 11) y = 2 * x;
What flag means?
Can a program run without main function?
Can constructor be static in c++?
what is data encapsulation in C++?
If a base class declares a function to be virtual, and a derived class does not use the term virtual when overriding that class, is it still virtual when inherited by a third-generation class?
By using c++ with an example describe linked list?