Open In App

UGC-NET | UGC NET CS 2014 Dec – II | Question 14

When an array is passed as parameter to a function, which of the following statements is correct?
(A) The function can change values in the original array.
(B) In C, parameters are passed by value, the function cannot change the original value in the array.
(C) It results in compilation error when the function tries to access the elements in the array.
(D) Results in a run time error when the function tries to access the elements in the array.

Answer: (A)
Explanation: When an array is passed as parameter to a function then the function can change values in the original array.
For more information on parameter passing Refer:Parameter Passing Techniques in C/C++
Option (A) is correct.
Quiz of this Question

Article Tags :