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

What is the best way to store flag values in a program?

1012


Can include files be nested?

1062


Why is c called a structured programming language?

1216


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

2137


a value that does not change during program execution a) variabe b) argument c) parameter d) none

1186


List out few of the applications that make use of Multilinked Structures?

2115


What is getch?

1095


How can I find out how much free space is available on disk?

1015


What are the differences between new and malloc in C?

1075


How do you override a defined macro?

1210


Explain what is a const pointer?

1039


write a program to generate address labels using structures?

4524


Why array is used in c?

975


Why use int main instead of void main?

1073


What 'lex' does?

1104