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
program explaining feautures of c++
What is searching?
What is c++ iterator?
Explain function overloading
What are friend functions in C++?
What is the main purpose of c++?
What is the outcome of cout< a) 16 b) 17 c) 16.5
Is there any function that can skip certain number of characters present in the input stream?
What is the difference between while and do while loop?
Is there a c++ certification?
What does scope resolution operator do?
Define a pointer to a data member of the type pointer to pointer?
What is the difference between prefix and postfix versions of operator++()?
In a function declaration what does extern means?
How can you quickly find the number of elements stored in a static array?