ExamVeda
Login
Home
This question belongs to C Program Function
Function
?

The default parameter passing mechanism is

Answer & Solution
Correct Answer: Option A
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.
Examveda
Question posted by Examveda
Community

Join the Discussion

5 Comments
ROJES LOYOLA
ROJES LOYOLA 4 years ago
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.
Nitish Choudhary
Nitish Choudhary 6 years ago
I also want to know
Swati Dahihande
Swati Dahihande 7 years ago
How
RAHUL PAREWA
RAHUL PAREWA 9 years ago
because jdjskfhjfi
Sanjay Kumar
Sanjay Kumar 10 years ago
how to answer default :call by value
sugest me