Author | Topic: Please check this qstn from Khalid Mock Exam. |
maha anna bartender |
posted April 04, 2000 07:21 PM
This is from Mr.Khalid's Mock Exam. I checked the answer of this qstn by cheating, just answering 1 qstn at a time and finishing the test and saw the result. Which statements are true concerning the effect of the >> and >>> operators? 1) For non-negative values of left operand >> and >>> will have same result Ans given was 1) 4) 5) I think ans shd be 1) 5) because -100>>>32 will be -100 right? Any input welcome. [This message has been edited by maha anna (edited April 04, 2000).]
|
Jim Yingst sheriff |
posted April 04, 2000 08:13 PM
You're right - but see Mughal & Rasmussen's errata.
|
vjcool75 greenhorn |
posted April 05, 2000 01:40 AM
>>> 32 will result in shifting the bit by 0 positions.
|
maha anna bartender |
posted April 05, 2000 09:13 AM
Thanks. This qstn is put in the ErrataPage with the corrected version of the answer 4) regds maha anna
|
| | |