What we can’t place followed by the non-default arguments?

a) trailing arguments
b) default arguments
c) both trailing & default arguments
d) leading arguments

1 thought on “What we can’t place followed by the non-default arguments?”

  1. b
    Explanation: To avoid the ambiguity in arguments.
    eg. if func(int a=3, int b);
    so if we call func(5), here will 5 will be value of a or b, because 5 is first parameter so a should be 5 but as only one argument is given b should be 5. So to remove such ambiguity default parameters are kept at the end or rightmost side.

Leave a Comment