Answer Posted / kk
let the number be n
int bin(int n)
{
static int sum=0;
if(n>1)
{
rem=n%2;
sum = sum *10 +rem;
n=n/2;
bin(n);
}
else
{
sum=sum*10+1;
}
return sum;
}
| Is This Answer Correct ? | 7 Yes | 8 No |
Post New Answer View All Answers
What is the purpose of scanf() and printf() functions?
What is a list in c?
while initialization of array why we use a[][2] why not a[2][]...?
What are the header files used in c language?
What is the process to create increment and decrement stamen in c?
what is event driven software and what is procedural driven software?
What is the significance of an algorithm to C programming?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
Is python a c language?
The statement, int(*x[]) () what does in indicate?
about c language
Explain what is the difference between functions abs() and fabs()?
Why doesnt this code work?
What is the condition that is applied with ?: Operator?
What is include directive in c?