Programming-in-C
Question 1 |
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 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.
Access subject wise (1000+) question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content
Register Now
You have completed
questions
question
Your score is
Correct
Wrong
Partial-Credit
You have not finished your quiz. If you leave this page, your progress will be lost.
Correct Answer
You Selected
Not Attempted
Final Score on Quiz
Attempted Questions Correct
Attempted Questions Wrong
Questions Not Attempted
Total Questions on Quiz
Question Details
Results
Date
Score
Hint
Time allowed
minutes
seconds
Time used
Answer Choice(s) Selected
Question Text
Need more practice!
Keep trying!
Not bad!
Good work!
Perfect!