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
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Is fortran still used in 2018?
What are extern variables in c?
How is a null pointer different from a dangling pointer?
What does p mean in physics?
What is a example of a variable?
Do variables need to be initialized?
What is the difference between mpi and openmp?
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
What could possibly be the problem if a valid function name such as tolower() is being reported by the C compiler as undefined?
What is derived datatype in c?
Do you know the use of 'auto' keyword?
What is meant by realloc()?
Can a file other than a .h file be included with #include?
Why c is called top down?