In C language

2018

In C language

Answer: A. parameters are always passed by valuesIn C, all function arguments are passed by value. This means a copy of the argument's value is made and passed to the function. Even when using pointers, the…

  1. A.

    parameters are always passed by values

  2. B.

    parameters are always passed by reference

  3. C.

    non-pointer variables are passed by value and pointers are passed by reference

  4. D.

    parameters are always passed by value result

Attempted by 560 students.

Show answer & explanation

Correct answer: A

In C, all function arguments are passed by value. This means a copy of the argument's value is made and passed to the function. Even when using pointers, the pointer itself (the memory address) is copied by value, not passed by reference.

Explore the full course: Up Lt Grade Assistant Teacher 2025

Loading lesson…