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
When the macros gets expanded?
The difference between printf and fprintf is ?
How can I check whether a file exists? I want to warn the user if a requested input file is missing.
Explain what is wrong in this statement?
Explain two-dimensional array.
What is merge sort in c?
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is the use of sizeof () in c?
What is file in c language?
What does 4d mean in c?
What is the difference between scanf and fscanf?
Is swift based on c?
Are negative numbers true in c?
What is define directive?
What is ambagious result in C? explain with an example.