Which of the following function declarations with default arguments are correct?

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);

a) void g(int length, int width, int height = 1);
c) void g(int length, int width=1, int height = 1);

Computer Science & Information Technology

You might also like to view...

A(n) ________ hides some values from a field in a PivotTable

Fill in the blank(s) with correct word

Computer Science & Information Technology

Which expression adds 1 to the element of array arrayName at index i, assuming the array is of type int?

a) ++arrayName[i] b) arrayName++[i] c) arrayName[i++] d) None of the above.

Computer Science & Information Technology