i find this question from mock exam.
what is the output displayed by the following programe?
[CODE]
class Question{
public static void main(
String args[]){
int n = 7;
n <<= 3;<br /> n = n & n+1 | n+2 ^ n+3 ;<br /> n >>= 2;
System.out.println(n);
}
}
can any one suggest fast way to calculate 'n' value.
I think this type of questions will take more time in exame. Is it possible to get this type questions in real exame.
Regards
Satish