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


Please Help Members By Posting Answers For Below Questions

What are the two types of functions in c?

562


What is the function of this pointer?

668


What are two dimensional arrays alternatively called as?

653


Explain built-in function?

587


Explain the bubble sort algorithm.

638






What is I ++ in c programming?

619


What is the right type to use for boolean values in c?

580


What is meant by inheritance?

629


What is the use of #define preprocessor in c?

613


How can I trap or ignore keyboard interrupts like control-c?

615


How can I manipulate strings of multibyte characters?

631


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.

594


When should the register modifier be used? Does it really help?

607


Differentiate between Macro and ordinary definition.

723


How do you determine a file’s attributes?

598