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 are identifiers and keywords in c?
Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
In C language what is a 'dangling pointer'?
Is there a built-in function in C that can be used for sorting data?
What do you mean by keywords in c?
Explain how can you avoid including a header more than once?
What are multidimensional arrays?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
How can I get the current date or time of day in a c program?
What are compound statements?
why wipro wase
What is a shell structure examples?
What is static function in c?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?