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 / dishank
deepthisivan can u plz elaborate.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is const volatile variable in c?
write a c program to print the next of a particular no without using the arithmetic operator or looping statements?
What do you mean by command line argument?
What are the three constants used in c?
What is a pointer and how it is initialized?
How to find a missed value, if you want to store 100 values in a 99 sized array?
Why is struct padding needed?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Can you mix old-style and new-style function syntax?
What is the difference between strcpy() and memcpy() function in c programming?
Explain the use of bit fieild.
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
What is modifier & how many types of modifiers available in c?
Disadvantages of C language.
How do I use void main?