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
Should I learn c or c++ first?
What is the difference between a "copy constructor" and an "assignment operator" in C++?
Explain virtual class?
What is flush programming?
What do the header files usually contains?
What is difference between rand () and srand ()?
Who made c++?
Define pointers?
What does flush do c++?
By using c++ with an example describe linked list?
Can notepad ++ run c++?
What is a base class?
Distinguish between a # include and #define.
What is data binding in c++?
What is the limitation of cin while taking input for character array?