In C language
2018
In C language
Answer: A. parameters are always passed by values — 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…
- A.
parameters are always passed by values
- B.
parameters are always passed by reference
- C.
non-pointer variables are passed by value and pointers are passed by reference
- 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.
Loading lesson…