In C language

2018

In C language

  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 303 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