Examveda

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

D. By passing each array element as a parameter

Answer: Option C


Join The Discussion

Related Questions on Functions and Procedures in C plus plus