What is more efficient to pass as a parameter--a pointer or
an object? Why?
Answer / amar
Passing a parameter by pointer is more efficient than
passing as object. When a parameter is passed as object
another of copy of the object is created on stack hence it
has two overheads, 1. it takes cpu cycle while creating
copy object 2. it takes memory on stack.
Passing the parameter through pointer could lead to a
situation where function can acciedently change the value
of the object.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is visual c++ runtime?
What is iunknown?
What is the difference between pointer and reference?
7 Answers IBM, Microsoft, Tech Mahindra,
What is cwinthread class? Explain its advantages.
How to Use mfc71d.dll not mfc71.dll ?
Name the most commonly used wizards?
What is microsoft visual c++ redistributable and do I need it?
How will slove problem comes wirh Hybrid Inheritance?
What function is used to trap all mouse messages?
What is a wizard?
hi i have 1180 in gre and 109 in toefl i have one more backlog to clear now. My classes got over in 2007 july. can i put a course completion certificate for my f1 visa interview. plz help
hello sir i need movie editing and mixing software .where it is available and what is the site address