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


Please Help Members By Posting Answers For Below Questions

Compare interpreters and compilers.

727


What is sizeof int in c?

709


c program to compute AREA under integral

1931


What is context in c?

637


What is the basic structure of c?

658






What are loops c?

712


Why malloc is faster than calloc?

685


What is a void pointer? When is a void pointer used?

723


What is the best way of making my program efficient?

669


Do pointers take up memory?

760


Is there any demerits of using pointer?

710


Why is structure important for a child?

710


my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?

1235


When is a null pointer used?

731


When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd

738