Question: Consider the following C - function: double foo ( int n ) { int i; double sum; if ( n = = 0 ) return
Consider the following Cfunction:
double foo int n
int i;
double sum;
if n return ;
else
sum ;
for i ; i n; i
sum foo i;
return sum;
The space complexity of the above function is:
Question options:
Onn
On
O
On
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
