C++ Programming and Technical

What is the difference between a C++ pointer
and a reference?
a) A reference is the entire object while a pointer is
only the address of it.
b) References are used only in Visual C++.
c) The syntax used to access the object.
d) Pointers are simple address to the object while a
reference uses the virtual table.

Read Solution (Total 0)

C++ Other Question

If two functions within the same class have the
same name what happens?
a) Either one will be called depending on the parameters.
b) Nether function will be called.􀀁 This is dead
code and a very di􀀂cult problem to debug.
c) Both functions will be called in order.􀀁
d) The base class function of the same name will be
called
What is the primary purpose of a default constructor?
a) To allow multiple classes to be used in a single
program.
b) To copy an actual argument to a function's parameter.
c) To initialize each object as it is declared.
d) To maintain a count of how many objects of a
class have been created.