Answer to Question #328396 in C++ for nickname

Question #328396

Observe the function prototype below:

 

void printSomething(int[]);

 

Based on the parameter, what is this function expecting?


A. A single element of an array

B. An array address ("pass by reference")

C. An entire array ("pass by value")

D. The size of an array


1
Expert's answer
2022-04-14T11:24:15-0400

The correct answer is B.

All arrays are passed by reference in C++.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS