C program code
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 / guest
9
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is I ++ in c programming?
What is c standard library?
how to create duplicate link list using C???
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
What is file in c preprocessor?
How can you tell whether a program was compiled using c versus c++?
What is the difference between array and pointer?
What is console in c language?
What are data types in c language?
Are enumerations really portable?
write a program to rearrange the array such way that all even elements should come first and next come odd
Why does notstrcat(string, "!");Work?