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 the purpose of main( ) in c language?
What is the basic structure of c?
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Explain the meaning of keyword 'extern' in a function declaration.
Can i use “int” data type to store the value 32768? Why?
How do you print only part of a string?
What is a union?
Write a program to print ASCII code for a given digit.
Why is void main used?
What does the error 'Null Pointer Assignment' mean and what causes this error?
What is an arrays?
In c programming language, how many parameters can be passed to a function ?
What is the data segment that is followed by c?
Write the Program to reverse a string using pointers.
Describe the difference between = and == symbols in c programming?