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 are identifiers and keywords in c?

1094


Explain what does the characters 'r' and 'w' mean when writing programs that will make use of files?

1250


What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1236


In C language what is a 'dangling pointer'?

1138


Is there a built-in function in C that can be used for sorting data?

1255


What do you mean by keywords in c?

1144


Explain how can you avoid including a header more than once?

1090


What are multidimensional arrays?

1119


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....

1975


How can I get the current date or time of day in a c program?

1218


What are compound statements?

1171


why wipro wase

2308


What is a shell structure examples?

1097


What is static function in c?

1113


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?

2097