Question: Question 1 What is the correct syntax to pass an integer array arr of size n to a function name modifyArray? a ) void modifyArray
Question
What is the correct syntax to pass an integer array arr of size n to a function name modifyArray?
a void modifyArrayint arrn;
b void modifyArrayint arr;
c void modifyArrayint arr;
d All of the above
Question
Which of the following statements is true about passing arrays to functions in C
a An array cannot be passed to a function in C
b An array is passed by value to a function.
c An array is passed by reference to a function.
d An array is passed as a pointer to the first element.
Question
Given the function void updateArrayint arr int size; which of the following statements correctly calls updateArray from main with an integer array myArray of size
a updateArraymyArray;
b updateArray&myArray, ;
c updateArray yyArray, ;
d updateArraymyArray;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
