A directory of Objective Type Questions covering all the Computer Science subjects. Here you can access and discuss Multiple choice questions and answers for various compitative exams and interviews.

Discussion Forum

Que. 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:The function can change values in the original array.
Confused About the Answer? Ask for Details Here
Know Explanation? Add it Here

Similar Questions: