Elearning , Interview Questions And Answers

Google

n=compute(n-3)+compute(n-1); return(n); } return(1); } void main() { printf("%d",compute(5)); } (a) 6 (b) 9 (c) 12 (d) 13 6.What is the output of the following code:- void main() { int i; for(i=0;i<3;i++) { int i=100; i--; printf("%d..",i); } } (a0..1..2.. (b)99..98..97.. (c)100..100..100.. (d)99..99..99.. 7.What is the output of the following code:- void main() { int a[]={9,4,1,7,5}; int *p; p=&a[3]; printf("%d",p[-1]); } (a)6 (b)1