0

Can somebody pls explain me the concept of default value? Cause it still confuses me.

26th Jul 2016, 2:09 PM
Kacper Wcisło
Kacper Wcisło - avatar
3 Antworten
0
default value is that the value of the variable is settled at the time of function definition.
27th Jul 2016, 12:39 PM
Nanda Kumar
Nanda Kumar - avatar
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.
15th Aug 2016, 5:32 PM
Parth Kapil
Parth Kapil - avatar
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
16th Aug 2016, 8:25 PM
Slim Msehli
Slim Msehli - avatar