Can we pass a constant through a function. State Whether True or False.
Answers
Answered by
5
We pass a constant through a function. The statement is True.
Explanation:
The constant parameter received by the function cannot be modified in the function body. This means a constant parameter which has a value can't be used as in assignment operation.
But, the constant parameter value can be used in the assignment statement placing on the right side. A constant parameter can be declared when the transferred object value remains without any change inside the body of the called function.
Similar questions