for c = 2, value of c after c <<= 1;
Answer: D
Correct answer: c = 4;
<<= shifts left and assigns. Shifting left by one position doubles the value, because each bit moves to the next higher power of two:
So c becomes 4.
Please log in or register to report this question.