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
Post New Answer View All Answers
What should malloc(0) do?
Why is extern used in c?
When do we get logical errors?
Are the expressions * ptr ++ and ++ * ptr same?
In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
What are disadvantages of C language.
Which is better malloc or calloc?
What does sizeof function do?
What is storage class?
code for quick sort?
What does #pragma once mean?
How do you convert a decimal number to its hexa-decimal equivalent.Give a C code to do the same
Write a program to check palindrome number in c programming?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.