Friday, 9 August 2013

Fibonacci Series for the given code snippet

Fibonacci Series for the given code snippet

What is the answer?
int count, n, t1=0, t2=1, display=0;
display=t1+t2; t1=t2; t2=display;
++count;
printf("%d+",display);
Given options were : 0,1,2,-1 `

No comments:

Post a Comment