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
Can we use any name in place of argv and argc as command line arguments?
What is #include stdlib h?
what is ur strangth & weekness
Explain how do you search data in a data file using random access method?
What are two dimensional arrays alternatively called as?
Explain how to reverse singly link list.
What oops means?
What are c preprocessors?
Explain how can I remove the trailing spaces from a string?
How we can insert comments in a c program?
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
What is dynamic memory allocation?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What are types of structure?
Describe how arrays can be passed to a user defined function