how to convert binary to decimal and decimal to binary in C
lanaguage

Answer Posted / naveen bhatt

#include<stdio.h>
#include<conio.h>
void main()
{
int i,r,d,num;
for(i=1;i<=num;i++)
r=num%2;
num=d*num/2;
printf("\n the valueis=%d",r);
getch();
}

Is This Answer Correct ?    4 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to make a scientific calculater ?

1555


How can a program be made to print the name of a source file where an error occurs?

724


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1813


In a switch statement, explain what will happen if a break statement is omitted?

625


What is pointer to pointer in c?

627






What are identifiers in c?

628


What is #line in c?

554


write a program to find the given number is prime or not

3828


simple program of graphics and their output display

1462


Tell us the use of fflush() function in c language?

631


What is the most efficient way to store flag values?

678


Explain the difference between malloc() and calloc() in c?

571


What does printf does?

734


Why main is not a keyword in c?

640


What is a lookup table in c?

619