#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
i want to know details about SBI bank exam and date when to apply and what is the eligibility and the model papers related to it and various post available for Engineering in Information Technology.
what is test initiation criteria in software testing
2 Answers CybAge, Seed Infotech,
MY interview Experience with TCS
WHY SHOULD I HIRE YOU
how the aeroplane protected from the lightening?
In HSE safety system, why the combination of H,S&E letters? and what is relationship?
how to implement spiral model on railway reservation?.
What is meant by relay & co-ordination at substation engineering ?
what are the differences between malloc() and calloc() in c language?
write a program for input is 56 output will be 5+6=10?
Iam preparing for Visakhapatnam Management Trainee 2009 entrance exam.. If anybody have Visakhapatnam Management Trainee Interview questions Pls forward to my mail id srikanth.avanthi@gmail.com .. It is kindly request..
what is inheritance
Civil Engineering (5086)
Mechanical Engineering (4453)
Electrical Engineering (16638)
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)