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 can I convert integers to binary or hexadecimal?

Answer Posted / sabarish

for decimal to hexa its very simple.

void main()
{
int a=10;

printf("%x",a); // returns the hexa decimal equivalent
}

Is This Answer Correct ?    14 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you find the day of the week given the date?

1188


What are the application of c?

1086


What is the difference between strcpy() and memcpy() function in c programming?

1072


What is scope rule of function in c?

1076


What is the purpose of sprintf?

1123


Explain the difference between strcpy() and memcpy() function?

989


Can a pointer point to null?

1053


Explain what is meant by 'bit masking'?

1185


What is getch() function?

1047


Explain how are portions of a program disabled in demo versions?

1108


How can I write a function analogous to scanf?

1164


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

1057


Write a program to check armstrong number in c?

1119


What is the time and space complexities of merge sort and when is it preferred over quick sort?

1063


What does #pragma once mean?

1153