Answer Posted / santhi perumal
#include<stdio.h>
#include<conio.h>
int main()
{
int i,number;
printf("Enter the Number\n");
scanf("%d",&number);
for(i=7;i>=0;i--)
{
if((1<<i) & number)
printf("1");
else
printf("0");
}
}
| Is This Answer Correct ? | 9 Yes | 6 No |
Post New Answer View All Answers
What is indirection? How many levels of pointers can you have?
Process by which one bit pattern in to another by bit wise operation is?
Why is c faster?
How do you list a file’s date and time?
What is the purpose of & in scanf?
Give basis knowledge of web designing ...
How can you check to see whether a symbol is defined?
What is exit() function?
a c code by using memory allocation for add ,multiply of sprase matrixes
Explain Basic concepts of C language?
Explain pointers in c programming?
Wt are the Buses in C Language
Why can’t we compare structures?
What does main () mean in c?
Where define directive used?