in Programming retagged by
149 views
0 votes
0 votes
int sum(int A[], int n)

{

            int sum = 0, i;

            for(i = 0; i< n; i++)

            sum = sum + A[i];

            return sum;

}

What is the space complexity?


Select one:
a. 2n + 8
b. 2n + 16
c. n^2
d. n + 8

What is the space complexity?

in Programming retagged by
149 views

Please log in or register to answer this question.