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
How old is c programming language?
What is a nested formula?
Which built-in library function can be used to match a patter from the string?
Why ca not I do something like this?
What are the different types of endless loops?
Differentiate between Macro and ordinary definition.
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
What is the g value paradox?
Can you assign a different address to an array tag?
Is this program statement valid? INT = 10.50;
What is the use of #define preprocessor in c?
Which driver is a pure java driver
What does %c mean in c?
What is typedef example?
Why c is a procedural language?