Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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

Answer: 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.

Join The Discussion