#include<stdio.h>
int fn(int v);
main()
{
printf("%d\n",fn(7));
}
int fn(int v)
{
if(v==1 || v==0)
return 1;
if(v%2==0)
return fn(v/2)+2;
else
return fn(v-1)+3;
}
No Answer is Posted For this Question
Be the First to Post Answer
Write a test case plan for a typical banking application which involves functionalities like Balance enquiry, deposit, fund transfer etc. Make your assumptions and mention the same in your answer sheet.
write a c program which accepts input as Anu.B.Kapoor and gives output as:Kapoor.A.B plz send me the ans
I am going to appear for ISRO written test on 26 th april 2009 .So kindly forward me sample previous question paper for ISRO for BE Computer Science . My mail id : jothychristiya@gmail.com
i have studied my Btech up to 5years, is any problem with duration of the year.if the us embassy interviewer ask me why you have got 5 years to complete your btech,can you please give me answer.And i got less percentage.
Just a one miniute topics in English?
Why do windmills never appear stationary?
int i=~0; uint j=(uint)i; j++; printf(“%d”,j); what is the use of "uint" int the above code
Why you shifting job every other year?
what is difference between server 2008R1 and 2008 server R2?
Can have i call constructor in interface?
what is the difference b/w "print" and "sprint" in sql?
XSL and XSLD difference
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)