Q. The default parameter passing mechanism is
A. call by value
B. call by reference
C. call by value-result
D. None of these.
In call by value, a copy of actual arguments is passed to respective formal arguments.
In call by reference the location (address) of actual arguments is passed to formal arguments, hence any change made to formal arguments will also reflect in actual arguments.
In C-Language the Default Parameter Passing Mechanism is called as Call By Value
A. call by value
B. call by reference
C. call by value-result
D. None of these.
Answer: Call by Value
In C-Language the Default Parameter Passing Mechanism is called as Call By ValueProgramming languages use evaluation strategies to determine when to evaluate the argument(s) of a function call (for function, also read: operation, method, or relation) and what kind of value to pass to the function. For example, call by value/call by reference specifies that a function application evaluates the argument before it proceeds to the evaluation of the function's body and that it passes two capabilities to the function, namely, the ability to look up the current value of the argument and to modify it via an assignment statement. The notion of reduction strategy in lambda calculus is similar but distinct.
In call by value, a copy of actual arguments is passed to respective formal arguments.
In call by reference the location (address) of actual arguments is passed to formal arguments, hence any change made to formal arguments will also reflect in actual arguments.
In C-Language the Default Parameter Passing Mechanism is called as Call By Value
i think this is an informative post and it is very useful knowledgeable. therefore, i would like to thank you for the efforts you have made in writing this great article. check here nvsp voter complete information
ReplyDelete