int zap(int n)
{
if(n<=1)then zap=1;
else zap=zap(n-3)+zap(n-1);
}
then the call zap(6) gives the values of zap
[a] 8 [b] 9 [c] 6 [d] 12 [e] 15

Answer Posted / sindhu

shobha is correct.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is pragma c?

614


What is a void * in c?

597


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1444


Why is c so important?

596


A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles

647






How is = symbol different from == symbol in c programming?

614


What is malloc return c?

600


Which type of language is c?

653


Create a structure to specify data on students as given below: Roll number, Name, Department, Course, and Year of joining. Assume that there are not more than 450 students in the collage. (a) Write a function to print the names of all students who joined in the last 3 years. (b) Write a function to print the data of a student whose roll numbers are divisible by 4.

603


What is bin sh c?

582


What is a nested loop?

651


What does & mean in scanf?

604


Are global variables static in c?

676


write a c program in such a way that if we enter the today date the output should be next day's date.

1681


What is the use of getchar functions?

674