Functions.....cont(2)

Default Values in Arguments
When defining a function we can specify default values that will be taken into acount by the argument variables in case these are avoided when the function is called. This is done by simply assigning a value to the arguments when declaring the function. These values will be used if that parameter is not passed when when the function is called.
If the value of that parameter is finally set when calling the dafault value, it is stepped up. For eg: LEARN MORE>>

No comments: