Q48
NAT2 marksAlgorithmsConsider the following function:
int SimpleFunction(int Y[], int n, int x)
{
int total = Y[0], loopIndex;
for (loopIndex=1; loopIndex<=n-1; loopIndex++)
total=x*total +Y[loopIndex];
return total;
}
Let be an array of elements with , for all such that . The value returned by is __________
Sign in to save attempts.
Keys: Enter checks, ← → move between questions.
The solution is hidden while you attempt this question. It opens once you check or show the answer.