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 / neha
It prints the value of in decimal, octal, hexadecimal
format respectively.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?
what is the role you expect in software industry?
Why main is used in c?
What is difference between static and global variable in c?
What is the use of a static variable in c?
What is auto keyword in c?
Add Two Numbers Without Using the Addition Operator
How can you read a directory in a C program?
What are the string functions? List some string functions available in c.
pierrot's divisor program using c or c++ code
What is a program flowchart and how does it help in writing a program?
What is the most efficient way to count the number of bits which are set in an integer?
process by which one bit patten in to another by bit wise operation is? (a) masking, (b) pruning, (c) biting, (d) chopping,
What is the full form of getch?
What does the file stdio.h contain?