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 |
In which Way invoke context-sensitive help inside the editor?
What is a copy constructor? What is the need for it?
how i can design a user interface in vc++ for getting inputs from users
Do I need all the microsoft visual c++ redistributable?
What is command routing in VC++
How to Use mfc71d.dll not mfc71.dll ?
Explain pointer to the constant and constant pointer?
What is type-safety?
What is microsoft visual c++ 2013 redistributable?
Explain the important features of vc++?
What is persistence?
How do you specify which control is the buddy control?