C Programming - Bitwise Operators - Discussion

Discussion Forum : Bitwise Operators - True / False Questions (Q.No. 2)
2.
In the statement expression1 >> expression2. if expression1 is a signed integer with its leftmost bit set to 1 then on right shifting it the result of the statement will vary from computer to computer
True
False
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
12 comments Page 1 of 2.

Ruhi said:   5 years ago
I am not understanding this. Please, someone, help me.

Nia Sharma said:   5 years ago
Thank you all for explaining it.

Ami tiwari said:   6 years ago
Thanks for all the given explanation.

Kavi said:   7 years ago
Thank you.

Dhanraj said:   8 years ago
100% sure checked on GCC compiler of Indiabix.

Arup said:   9 years ago
I think result of the statement will vary from compiler to compiler.

Harry_monk said:   10 years ago
How you compute the value @Santhu?

Geek said:   1 decade ago
Since it is signed and leftmost bit is 1, whatever be the size of t int 1's will get filled from the left,

So I think answer is [B]. False.

Salluu said:   1 decade ago
Thank you bhai.

Nagarjun said:   1 decade ago
thank u Santhu


Post your comments here:

Your comments will be displayed after verification.