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 |
Do I need ms visual c++ on my computer?
What are the advantages of a message map
Do I need the microsoft visual c++?
What is a glyph?
What is microsoft visual c++ 2015 redistributable package x64?
What Is InfoViewer?
Explain pointer to the constant and constant pointer?
Explain some of commonly used methods provided by iunknown.
What are the two forms of the #include preprocessor directive?
What is cwinthread class? Explain its advantages.
A file a.cpp & B.cpp are complied & linked together in VC++ file a is something like int a =100;, File B is something like extern a; main() { printf("%d",a); }what will be the output.a)100,b)linker error,c)complier error etc etc.
Is it safe to uninstall microsoft visual c++ 2008 redistributable?