Correct answer is A & B. My answer was B&C cause when 128 >> 1 is computed, the rule is that whatever the most significant bit is, that has to be "filled" from the left. In this case when 128(10000000) is shifted right by 1 bit, another 1 will be added cause initially the most significant bit of 128 was 1. This will give us 11000000 which comes out to be 192. Am i correct??
Don't forget that there is automatic promotion of the operands to ints. Therefore you are shifting (00000000 00000000 00000000 10000000) and the initial zero stays zero.
Anybody knows about a job for <a href="http://cern.ch/jvalenta/valenta-cv.pdf" target="_blank" rel="nofollow">SCJP5.0, Ph.D. in Software Engineering, 2 years Java, C, C++</a> in Montreal, QC, Canada? Thanks!