Discussion :: Functions - General Questions (Q.No.2)
|Prabhat said: (Oct 20, 2013)|
|If argument is constant. Then what is the need of having argument.
Function without argument can serve the purpose.
|Aleyan said: (Oct 31, 2013)|
|Constant can not change their values and if argument is constant we can not change argument value.|
|Hari said: (Nov 23, 2013)|
|If arguments fixed as constants that can not be changed.|
|Sowmya said: (Dec 1, 2013)|
|Once the arguments are declared as constants that can't to change its value in any execution. Even in function.|
|Shiv said: (Dec 25, 2013)|
|Constant = The variable having fixed value is called as constant.
Hence, constant can not change their values.
And function takes variable as an argument.
Constant is a type of variable.
i.e. Option C is correct.
|Tvdz said: (Nov 20, 2014)|
|Technically B is incorrect, as a const_cast would allow you to change a constant.|
|Bhaumik said: (Jul 2, 2015)|
|Its not change the argument type. We can change its value which type of argument is there. So arguments type is constant.|
|Navya said: (Jan 4, 2016)|
|Why we cannot use the constant while defining function?|
|Samala Sumanth said: (Apr 18, 2017)|
|Can mutable change the value of const?|
Post your comments here:
Email : (optional)
» Your comments will be displayed only after manual approval.