Programming - Functions - Discussion

You Are Here :: Home > C++ Language > Functions - Discussion

 



Q.

Identify the correct prototype for a function that receives an array of doubles, computes the sum of all the elements of the array, and returns the sum to the calling function.                         


A. void computeSum(double array[], int size, double * sum); B. void computeSum(double array[], int size, double & sum);
C. double computeSum(double array[], int size); D. All of the Above

Answer: Option A
Explaination:

 


No Explanation




Discussion

Your Comments Goes here...
NameDiscussion