Programming-in-c
Question 1 |
When an array is passed as parameter to a function, which of the following statements is correct ?
The function can change values in the original array. | |
In C, parameters are passed by value, the function cannot change the original value in the array. | |
It results in compilation error when the function tries to access the elements in the array. | |
Results in a runtime error when the function tries to access the elements in the array. |
Question 1 Explanation:
The function can change values in the original array, when an array is passed as parameter to a function because we have to pass it by reference.
There is 1 question to complete.