<<= is called an extended assignment operator & when such an operator is used there is an implicit narrowing of the result i.e. the result is automatically cast back to the destination type. Here's how b <<= 2 is evaluated - b = (byte)(127 << 2) If the expression were - b = b << 2 instead of b <<= 2 you'd get a compiler error. Ashish H.
Joined: Jan 24, 2002
Dear Ashish, Thank you very much! I am going to try your VoodooExam soon. I hope your mock exam has an html or text version. That's just my personal opinion. I understand you might have your concern. Anyway, thanks for your help. Moya
Joined: Jul 14, 2001
I hope your mock exam has an html or text version.
Sorry Moya but as soon as a HTML version is available you'll be the first to know . Thanx for the tip - an HTML version would have it's advantages. Ashish H.