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 / mazhar
fn name and variable name are same it get overloaded..
by changing the variable name the ans will be: 9
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What should malloc(0) do?
What is the 'named constructor idiom'?
What would be an example of a structure analogous to structure c?
why return type of main is not necessary in linux
Write a code to remove duplicates in a string.
What are header files and explain what are its uses in c programming?
What are the functions to open and close the file in c language?
Explain how can I manipulate strings of multibyte characters?
Do pointers take up memory?
Why do we need a structure?
any limit on the number of functions that might be present in a C program a) max 35 functions b) max 50 functions c) no limit d) none of the above
What are structural members?
What is difference between static and global variable in c?
What are pointers in C? Give an example where to illustrate their significance.
How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?