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 |
Program to write some contents into a file using file operations with proper error messages.
write an algorithm and a program to count the number of elements in a circularly singly linked list
Why we use void main in c?
what is meant by c
What is the difference between a function and a method in c?
What does & mean in scanf?
how to make program without <> in libray.
What are operators in c?
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR
Why data types in all programming languages have some range? Why ritche have disigned first time likethat?Why not a single data type can support all other types?
What is the difference between the local variable and global variable in c?
what is ram?