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
What is pragma c?
What is a void * in c?
hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...
Why is c so important?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
How is = symbol different from == symbol in c programming?
What is malloc return c?
Which type of language is c?
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.
What is bin sh c?
What is a nested loop?
What does & mean in scanf?
Are global variables static in c?
write a c program in such a way that if we enter the today date the output should be next day's date.
What is the use of getchar functions?