When an array is passed as parameter to a function, which of the following…

PYQ UGC NET 2014

When an array is passed as parameter to a function, which of the following statements is correct ?

  1. A.

    The function can change values in the original array.

  2. B.

    In C, parameters are passed by value, the function cannot change the original value in the array.

  3. C.

    It results in compilation error when the function tries to access the elements in the array.

  4. D.

    Results in a run time error when the function tries to access the elements in the array.

Attempted by 679 students.

Sign up free to check your answer

Sign up free

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…