main()
{
unsigned int k = 987 , i = 0;
char trans[10];
do {
trans[i++] =(char) (k%16 > 9 ? k%16 - 10 + 'a' : '\0' );
} while(k /= 16);
printf("%s\n", trans);
}
Answer Posted / deepthisivan
bd
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Explain how do you generate random numbers in c?
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is 1f in c?
What is the difference between array and pointer in c?
Why is c known as a mother language?
What is getch () for?
How do you print an address?
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is preprocessor with example?
How does selection sort work in c?
What is the g value paradox?
What is data structure in c programming?
Which built-in library function can be used to match a patter from the string?
Is c compiled or interpreted?
Can you tell me how to check whether a linked list is circular?