fn f(x)

{ if(x<=0)
return;
else f(x-1)+x;
}

Answer Posted / gupta

x(x+1)/2

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a string?

668


In which layer of the network datastructure format change is done

1439


What is the use of ?: Operator?

671


Write a code to determine the total number of stops an elevator would take to serve N number of people.

733


How do I round numbers?

604






What does the c preprocessor do?

625


Where are the auto variables stored?

626


Where is volatile variable stored?

652


Why dont c comments nest?

625


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

877


Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?

678


What is time null in c?

587


Tell me the use of bit field in c language?

631


What are the 4 types of unions?

613


What is the difference between NULL and NUL?

732