#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 join for load runner training..please suggest me which is the best institute for load runner training in bangalore?
What is meant by relay & co-ordination at substation engineering ?
Explain work?
Hi i want some previous interview questions and answers for KVB Bank.
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
what is the diffeence between SQL and ORACLE?
What are the methods available in storing sequential files ?
What is a PCB?
what is the difference between BE and BTECH??
what are the no. of leaf nodes in a fibonacci tree ?
Write a program to input 10 elements in an array and seperate even and odd numbers, positive and negative between them ?
WHAT ARE THE ADVANTAGE OF SYSTEM ENGINEER