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


Please Help Members By Posting Answers For Below Questions

What functions are used in dynamic memory allocation in c?

767


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

4169


how to write optimum code to divide a 50 digit number with a 25 digit number??

2958


What is the process of writing the null pointer?

763


What is the difference between formatted&unformatted i/o functions?

796






When should the const modifier be used?

829


What are reserved words?

831


What are the different types of linkage exist in c?

759


Can you mix old-style and new-style function syntax?

841


What is a loop?

778


What does calloc stand for?

827


How do I copy files?

792


What is && in c programming?

870


Why can't I perform arithmetic on a void* pointer?

812


What is the difference between char array and char pointer?

717