C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - Find Output of Program (Q.No. 6)
6.
What will be the output of the program?
#include<stdio.h>

int main()
{
    printf("%d >> %d %d >> %d\n", 4 >> 1, 8 >> 1);
    return 0;
}
4 1 8 1
4 >> 1 8 >> 1
2 >> 4 Garbage value >> Garbage value
2 4
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
36 comments Page 4 of 4.

Saikumar said:   9 years ago
Thank you @Neetu and @Teja.

Divya s said:   1 decade ago
Yes neetu understood thanks

Maruti shrivastava said:   1 decade ago
Very thanks to you neetu.

Deepika said:   1 decade ago
Thanks Neetu.....

Krutika said:   9 years ago
Thank you @Mayur.

Shree said:   8 years ago
Thanks @Neetu.


Post your comments here:

Your comments will be displayed after verification.