#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

Post New Answer

More Engineering AllOther Interview Questions

I want to join for load runner training..please suggest me which is the best institute for load runner training in bangalore?

0 Answers  


What is meant by relay & co-ordination at substation engineering ?

0 Answers   Bureau Veritas,


Explain work?

0 Answers  


Hi i want some previous interview questions and answers for KVB Bank.

0 Answers  


HI i have 2 year manual testing exp from MNC in pune but due to some reason i am looking job in testing . Friends hepl me to get the job i am not getting calls. alim24@gmail.com.09860643281

0 Answers  






what is the diffeence between SQL and ORACLE?

0 Answers  


What are the methods available in storing sequential files ?

2 Answers  


What is a PCB?

5 Answers   Country Club,


what is the difference between BE and BTECH??

1 Answers   Wipro,


what are the no. of leaf nodes in a fibonacci tree ?

0 Answers  


Write a program to input 10 elements in an array and seperate even and odd numbers, positive and negative between them ?

0 Answers  


WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER

0 Answers  


Categories
  • Civil Engineering Interview Questions Civil Engineering (5085)
  • Mechanical Engineering Interview Questions Mechanical Engineering (4451)
  • Electrical Engineering Interview Questions Electrical Engineering (16632)
  • Electronics Communications Interview Questions Electronics Communications (3918)
  • Chemical Engineering Interview Questions Chemical Engineering (1095)
  • Aeronautical Engineering Interview Questions Aeronautical Engineering (239)
  • Bio Engineering Interview Questions Bio Engineering (96)
  • Metallurgy Interview Questions Metallurgy (361)
  • Industrial Engineering Interview Questions Industrial Engineering (259)
  • Instrumentation Interview Questions Instrumentation (3014)
  • Automobile Engineering Interview Questions Automobile Engineering (332)
  • Mechatronics Engineering Interview Questions Mechatronics Engineering (97)
  • Marine Engineering Interview Questions Marine Engineering (124)
  • Power Plant Engineering Interview Questions Power Plant Engineering (172)
  • Textile Engineering Interview Questions Textile Engineering (575)
  • Production Engineering Interview Questions Production Engineering (25)
  • Satellite Systems Engineering Interview Questions Satellite Systems Engineering (106)
  • Engineering AllOther Interview Questions Engineering AllOther (1379)