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 is const keyword in c?
1. Write a function to display the sum of two numbers in the following ways: By using (i) pass by value (ii) pass by address a. function with argument and with return value b. function with argument and without return value c. without argument , with return value d. without argument , without return value Note: Use pass by address.
Explain what is a program flowchart and explain how does it help in writing a program?
When is a void pointer used?
What is extern keyword in c?
What is static memory allocation?
What are conditional operators in C?
Explain function?
Explain what is the difference between null and nul?
How can I write a function that takes a format string and a variable number of arguments?
Explain what are binary trees?
find the sum of two matrices and WAP for it.
write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.
Not all reserved words are written in lowercase. TRUE or FALSE?
What is the maximum length of an identifier?