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 nested loop?
What are reserved words?
What is hash table in c?
What is the difference between constant pointer and constant variable?
What are global variables and how do you declare them?
What is #include called?
What language is lisp written in?
What does %d do?
Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?
What are the scope of static variables?
When should the volatile modifier be used?
console I/O functions means a) the I/O operations done on disk b) the I/O operations done in all parts c) the input given through keyboard is displayed VDU screen d) none of the above
What is %d used for?
What are the different types of control structures in programming?
What does %p mean?