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
Answers were Sorted based on User's Feedback
Answer / 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 |
What is non linear data structure in c?
main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
why we wont use '&' sing in aceesing the string using scanf
List the difference between a While & Do While loops?
6. Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod()
How can I open files mentioned on the command line, and parse option flags?
What is a union?
How can I write a function that takes a format string and a variable number of arguments?
Why is %d used in c?
Explain what is the general form of a c program?
write a string copy function routine?
sir i got 146 correct question & i have also the advantage of height so will they consider my marks as 146+3=149.can any body tell me how they consider my height marks.