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
What is the best way to store flag values in a program?
Can include files be nested?
Why is c called a structured programming language?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell
a value that does not change during program execution a) variabe b) argument c) parameter d) none
List out few of the applications that make use of Multilinked Structures?
What is getch?
How can I find out how much free space is available on disk?
What are the differences between new and malloc in C?
How do you override a defined macro?
Explain what is a const pointer?
write a program to generate address labels using structures?
Why array is used in c?
Why use int main instead of void main?
What 'lex' does?