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
How do you print only part of a string?
What is the use of a static variable in c?
What is the difference between char array and char pointer?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Explain how can you tell whether a program was compiled using c versus c++?
What is output redirection?
What is the difference between new and malloc functions?
What is the full form of getch?
Can variables be declared anywhere in c?
How to establish connection with oracle database software from c language?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
Difference between strcpy() and memcpy() function?
How do you determine the length of a string value that was stored in a variable?
What is the sizeof () operator?
State the difference between realloc and free.