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 data type in c++?
Explain shallow copy?
What are smart pointers?
What is setiosflags c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
What is the maximum combined length of command line arguments including the space between adjacent arguments?
What is the purpose of templates in c++?
What c++ library is string in?
What is helper in c++?
Keyword mean in declaration?
How does a C++ structure differ from a C++ class?
Tell me what are static member functions?
What is a container class?
What is the purpose of extern storage specifier?
When are exception objects created?