0
Can somebody pls explain me the concept of default value? Cause it still confuses me.
3 Respuestas
0
default value is that the value of the variable is settled at the time of function definition.
0
Every time you call a function you have to provide certain values to the arguements passed in calling that function. This value has to be taken from the user or initialised in the main. If by any means user is not able to give a value to a variable then default arguement comes into play. The default value given to the formal parameter undergoes operations.
0
if you declare a variable without giving it a number when you need that variable it will be empty. that's why you need to give it a default value