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 meant by type specifiers?

1139


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2189


How can you pass an array to a function by value?

1130


Write a factorial program using C.

1087


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

1096


Why static is used in c?

1096


What does a derived class inherit from a base class a) Only the Public members of the base class b) Only the Protected members of the base class c) Both the Public and the Protected members of the base class d) .c file

1120


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3382


What is assignment operator?

1063


What is sizeof return in c?

1041


Define VARIABLE?

1172


One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.

2645


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

2364


Why is sizeof () an operator and not a function?

1034


What are linked lists in c?

1132