Welcome to Westonci.ca, your go-to destination for finding answers to all your questions. Join our expert community today! Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Experience the convenience of finding accurate answers to your questions from knowledgeable experts on our platform.

Rewrite the following function so that it returns the same result, but does

not increment the variable ptr. Your new program must not use anysquare brackets, but must use an integer variable to visit each double in the array. You may eliminate any unneeded variable.

double computeAverage(const double* scores, int nScores)

{
const double* ptr = scores;
double tot = 0;
while (ptr != scores + nScores)

{
tot += *ptr; } ptr++;

}
return tot/nScores;



Sagot :

Answer:

одиннадцать обречены и

Explanation:

переписать это как один из следующих