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
What is the -> in c?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
What are global variables?
How can I handle floating-point exceptions gracefully?
How to write c functions that modify head pointer of a linked list?
What is union and structure in c?
What is a nested loop?
What is a newline escape sequence?
Explain what are the advantages and disadvantages of a heap?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?
What is function and its example?
Do you know what are the properties of union in c?
What is the sizeof () a pointer?
What is string constants?