What is the output of following program ?
int
main()
{
int x = 5;
printf("%d %d %d\n", x, x << 2, x >> 2);
}
Answer Posted / shubham
5
5>>2=1(0000101=>00000001)
5<<2=20(0000101=>10100)
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What would be an example of a structure analogous to structure c?
What are pointers? Why are they used?
How can I split up a string into whitespace-separated fields?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What does calloc stand for?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
What is the value of uninitialized variable in c?
Explain how can I open a file so that other programs can update it at the same time?
What is declaration and definition in c?
Give basis knowledge of web designing ...
write a programe to accept any two number and check the following condition using goto state ment.if a>b,print a & find whether it is even or odd and then print.and a
Explain what will the preprocessor do for a program?
general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only
Difference between linking and loading?
What is page thrashing?