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 meant by type specifiers?
Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......
How can you pass an array to a function by value?
Write a factorial program using C.
What is the difference between strcpy() and memcpy() function in c programming?
Why static is used in c?
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
What is the difference between declaring a variable by constant keyword and #define ing that variable?
What is assignment operator?
What is sizeof return in c?
Define VARIABLE?
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.
Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays
Why is sizeof () an operator and not a function?
What are linked lists in c?