Write the program for fibonacci in c++?
Answer Posted / darren chang
int fib(int input)
{
if(input==0)
return 0;
if((input==1)||(input==2))
return 1;
else
return fib(input-1)+fib(input-2);
}
| Is This Answer Correct ? | 10 Yes | 31 No |
Post New Answer View All Answers
Which sort does c++ use?
What is the latest version on c++?
What is the iunknown interface?
What is vectorial capacity?
What is a manipulative person?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is a constant? Explain with an example.
Explain what are single and multiple inheritances in c++?
What operator is used to access a struct through a pointer a) >> b) -> c) *
How do you clear a set in c++?
What are shallow and deep copies?
What is c++ map?
What is virtual table?
What things would you remember while making an interface?
What is string in c++ programming?