C++ Programming and Technical

What does the term “default parameter” mean in
C++?
a) It means that the compiler supplies default functionality
that you get for "free".
b) A parameter that C++ automatically supplies a
default value for.
c) Some C++ functions have all the parameters
written for you by the compiler
d) A parameter based on primitive C++ variable
types.

Read Solution (Total 0)

C++ Other Question

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.
Suppose that the foo class does not have an
overloaded assignment operator. What happens
when an assignment a=b; is given for two foo
objects?
a) The automatic assignment operator is used
b) The copy constructor is used
c) Compiler error
d) Run-time error