main()
{
int a = 65;
printf(“%d %o %x”,a,a,a);
}
Output
65 101 41
Please explain me.How it is coming like that?
Answer Posted / ruchika thakur
in octal,divide 65 by 8 and collect the remainder.it will
return 101....and in hexadecimal,divide 65 by 16 and again
collect the remainder...you will get 41......
THANKS
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What is a structure member in c?
What is the easiest sorting method to use?
c program for searching a student details among 10 student details
What is enumerated data type in c?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
Which is better malloc or calloc?
What is the difference between abs() and fabs() functions?
What are formal parameters?
What does malloc () calloc () realloc () free () do?
What is the use of c language in real life?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
Explain high-order and low-order bytes.
Tell me when is a void pointer used?
What are the advantage of c language?