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

Can stdout be forced to print somewhere other than the screen?

884


Give me the code of in-order recursive and non-recursive.

1168


What is the stack in c?

914


What is the heap?

988


What is static and auto variables in c?

820


Why is it that not all header files are declared in every C program?

945


Why main is not a keyword in c?

947


What is the value of c?

814


What is #line used for?

816


What is FIFO?

1203


What is the meaning of typedef struct in c?

844


What are reserved words with a programming language?

870


What are derived data types in c?

847


hi folks i m approching for h1 b interview on monday 8th of august at montreal and i m having little problem in my approval notice abt my bithdate my employer has made a mistake while applying it is 12th january and istead of that he had done 18 the of january do any body have any solution for that if yes how can i prove my visa officer abt my real birthdate it urgent please let me know guys thaks dipesh patel

1663


which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above

1809