What is clrscr in c?
No Answer is Posted For this Question
Be the First to Post Answer
Why does everyone say not to use scanf? What should I use instead?
plz let me know how to become a telecom protocol tester. thank you.
What is the difference between if else and switchstatement
Explain the use of keyword 'register' with respect to variables.
Can a variable be both const and volatile?
What is the sizeof () a pointer?
What is the difference between GETS();AND SCANF();
what does static variable mean?
Explain how can I make sure that my program is the only one accessing a file?
Once I have used freopen, how can I get the original stdout (or stdin) back?
What are volatile variables?
#include<stdio.h> int f(int,int); int main() { printf("%d",f(20,1)); return 0; } int f(int n,int k) { if(n==0) return 0; else if(n%2)return f(n/2,2*k)+k; else return f(n/2,2*k)-k; } how this program is working and generating output as 9....?