Saturday, July 4, 2020

Parameterized Functions


It happens at times that a particular parameter's values are in use more often than others. Such arguments may have their default (predefined) values taken into consideration when their corresponding arguments have been omitted.

Let’s consider the below example.









Output will be,







Both parameters have their default values now, look at the code below.







Output will be


No comments:

Post a Comment