Examveda

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.

This Question Belongs to C Program >> Function

Join The Discussion

Comments (5)

  1. ROJES LOYOLA
    ROJES LOYOLA:
    3 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.

  2. Nitish Choudhary
    Nitish Choudhary:
    6 years ago

    I also want to know

  3. Swati Dahihande
    Swati Dahihande:
    7 years ago

    How

  4. RAHUL PAREWA
    RAHUL PAREWA:
    9 years ago

    because jdjskfhjfi

  5. Sanjay Kumar
    Sanjay Kumar:
    9 years ago

    how to answer default :call by value
    sugest me

Related Questions on Function