The default parameter passing mechanism is
A. call by value
B. call by reference
C. call by value result
D. None of these.
Answer: Option A
Solution (By Examveda Team)
In C programming, the default parameter passing mechanism is call by value.Call by value: In this mechanism, a copy of the actual parameter's value is passed to the function. The function operates on this copy, and changes made to the parameter within the function do not affect the original argument.
Call by reference: This is not the default mechanism in C. It involves passing the address of the actual parameter, allowing the function to modify the original value.
Call by value result: This mechanism is not used by default in C. It involves passing a copy of the actual parameter and then updating the original variable with the result after the function execution.
None of these: This option is incorrect because call by value is indeed the default parameter passing mechanism in C.
Thus, Option A: call by value is the correct answer.
Join The Discussion
Comments (5)
Related Questions on Function
In C, what is a function primarily used for?
A. Decision making
B. Variable declaration
C. Code organization and reusability
D. Printing output
What is the purpose of a function prototype in C?
A. To declare a function's return type
B. To declare a function's name
C. To declare a function's parameters and return type
D. To declare a function's name and parameters
In C, how are function arguments passed by default?
A. By value
B. By reference
C. By pointer
D. By address

Here it is Default parameter means that a variable with the initialized value and passing mechanism means that passing that value to somewhere which it needed in some function in C programming uses call by value to pass arguments. The call by reference is calling a pointer in a function is known as reference. By getting a reference of a value in a pointer.
I also want to know
How
because jdjskfhjfi
how to answer default :call by value
sugest me