Vidyalelo
C++ Programming · Q30

Functions and Procedures in C++

Programming · C++ Programming · question 30

Q30

What is the correct way to pass an array to a function in C++?

A.
By declaring the array globally and accessing it directly
B.
By passing the array index as a parameter
C.
By passing the array name and size as parameters
Answer
D.
By passing each array element as a parameter

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board