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
Explain the ternary tree?
What is call by value in c?
Are comments included during the compilation stage and placed in the EXE file as well?
Why static variable is used in c?
Explain what are the different data types in c?
What is scope rule in c?
Is c is a procedural language?
Define recursion in c.
What is typedef struct in c?
Why is c still so popular?
What is size of union in c?
How can I get back to the interactive keyboard if stdin is redirected?
Can two or more operators such as and be combined in a single line of program code?
What is double pointer in c?
What library is sizeof in c?