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
What functions are used in dynamic memory allocation in c?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
how to write optimum code to divide a 50 digit number with a 25 digit number??
What is the process of writing the null pointer?
What is the difference between formatted&unformatted i/o functions?
When should the const modifier be used?
What are reserved words?
What are the different types of linkage exist in c?
Can you mix old-style and new-style function syntax?
What is a loop?
What does calloc stand for?
How do I copy files?
What is && in c programming?
Why can't I perform arithmetic on a void* pointer?
What is the difference between char array and char pointer?