CBSE Class 12 Computer Science Question 43 of 103

Working with Functions — Question 1

Back to all questions
1
Question

Question 1

Non-default arguments can be placed before or after a default argument in a function definition.

Answer

False

Reason — In a function header, any parameter cannot have a default value unless all parameters appearing on its right have their default values. Hence, non-default arguments cannot follow default argument.