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 / ravinderreddy
ans: b
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What are the two types of functions in c?
What is the function of this pointer?
What are two dimensional arrays alternatively called as?
Explain built-in function?
Explain the bubble sort algorithm.
What is I ++ in c programming?
What is the right type to use for boolean values in c?
What is meant by inheritance?
What is the use of #define preprocessor in c?
How can I trap or ignore keyboard interrupts like control-c?
How can I manipulate strings of multibyte characters?
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.
When should the register modifier be used? Does it really help?
Differentiate between Macro and ordinary definition.
How do you determine a file’s attributes?