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
Write a program to reverse a given number in c?
What is hungarian notation? Is it worthwhile?
Why do we need volatile in c?
What is ambagious result in C? explain with an example.
What is the use of a semicolon (;) at the end of every program statement?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is assert and when would I use it?
illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
How do shell structures work?
How many bytes is a struct in c?
Add Two Numbers Without Using the Addition Operator
How was c created?
What is the use of c language in real life?
What is the use of gets and puts?