how to write a prog in c to convert decimal number into
binary by using recursen function,
Answer / madhavi
void decitobin(int n);
main()
{
int n;
printf("Enter an integer:");
scanf("%d",&n);
decitobin(n);
}
void decitobin(int n)
{
if(n>0)
{
decitobin(n/2);
printf("%d",n%2);
}
}
| Is This Answer Correct ? | 2 Yes | 0 No |
what is the defrenece between structure and union
Is c is a procedural language?
in linking some of os executables are linking name some of them
What is variable and explain rules to declare variable in c?
How to reverse a string using a recursive function, with swapping?
Is double link list a linear data structure? If Yes, Why?If No, Why?
What is the function of volatile in c language?
write a c program to store and print name,address,roll.no of a student using structures?
all c language question
Can you write the function prototype, definition and mention the other requirements.
What is a nested formula?
pgm to find middle element of linklist(in efficent manner)