Question: For each of the following function declarations with default arguments (written in C++ Language), either mark the declaration correct or explain why it is incorrect.
For each of the following function declarations with default arguments (written in C++ Language), either mark the declaration correct or explain why it is incorrect.
(a) void g(int length, int width, int height = 1);
(b) void g(int length=1, int width, int height);
(c) void g(int length, int width=1, int height = 1);
(d) void g(int length=1, int width=1, int height);
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
