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
Describe exception handling concept with an example?
Explain terminate() function?
Mention the purpose of istream class?
What is the difference between ++ count and count ++?
which operator is used for performing an exponential operation a) > b) ^ c) none
How do you declare A pointer to a function which receives nothing and returns nothing
Reverse the Linked List. Input: 1->2->3->4->5->NULL Output: 5->4->3->2->1->NULL
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
What is constructor in C++?
What are the advantages of using friend classes?
How do I exit turbo c++?
What is cout flush?
How can you link a c program with a c function?
Write my own zero-argument manipulator that should work same as hex?
What is an accessor in c++?