Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

how to find the binary of a number?

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


Please Help Members By Posting Answers For Below Questions

What is indirection? How many levels of pointers can you have?

1101


Process by which one bit pattern in to another by bit wise operation is?

1120


Why is c faster?

1031


How do you list a file’s date and time?

1036


What is the purpose of & in scanf?

1026


Give basis knowledge of web designing ...

1989


How can you check to see whether a symbol is defined?

1069


What is exit() function?

977


a c code by using memory allocation for add ,multiply of sprase matrixes

2761


Explain Basic concepts of C language?

1092


Explain pointers in c programming?

1073


Wt are the Buses in C Language

3173


Why can’t we compare structures?

1233


What does main () mean in c?

1070


Where define directive used?

1039