#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
in single linked list , each node contains data and address of next node. if middle of list the node is damaged/crashed then how to find where the link is failed and how to get the all the data which is stored after the crashed node?
can i learn ad. java without learned core java? java is best or .net is best for summer training?
what is different between static block and public static void main??
Why there is Powerfactor difference when we compare to our Capacitive Panel and TNEB side?
Hi I am Krushna.I have already applied for PO post in Syndicate Bank.Can anybody send me the sample paper for Syndicate bank PO.
what is dedicated earthing??????
3 Answers APC, ElectroMech, Emerson, JLL, JP Group, Tata Liebert,
Whats the difference between following two array declaration in JAVA? int a[]={1,2,3,4,5}; int []a-{1,2,3,4,5};
i want what are the subjects that are in group1 exams. plz send me the subjects.
what is e-bum.
minimum percentage in B.E in(INFORMATION TECHNOLOGY) to be eligible for IES exam qualification and also for reserved categories.are IT engineers are eligible for giving IES exams? please reply soon.
How can I boldly face the interview? Request:I am eagerly waiting for your replay.
what is the significance of partial derivatives.