Vidyalelo
C++ Programming · Q10

Arrays and Strings in C++

Programming · C++ Programming · question 10

Q10

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

A.
By declaring the array as global
B.
By passing the array itself
C.
Using a pointer to the array
Answer
D.
By passing each element of the array individually

Answer: Option C

Solution

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