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
How do you override a defined macro?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?
In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none
What is function definition in c?
Describe the difference between = and == symbols in c programming?
What is the explanation for the dangling pointer in c?
What is the process of writing the null pointer?
Device an algorithm for weiler-atherton polygon clipping, where the clipping window can be any specified polygon
write a program to generate address labels using structures?
What is extern keyword in c?
What is the use of a static variable in c?
What is the use of c language in real life?
Explain b+ tree?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is character set?