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
Compare interpreters and compilers.
What is sizeof int in c?
c program to compute AREA under integral
What is context in c?
What is the basic structure of c?
What are loops c?
Why malloc is faster than calloc?
What is a void pointer? When is a void pointer used?
What is the best way of making my program efficient?
Do pointers take up memory?
Is there any demerits of using pointer?
Why is structure important for a child?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
When is a null pointer used?
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd