Question: < < and >> are left shift and right shift operator in C. Assuming a is a 32 bits integer, and given the following

< < and >> are left shift and right shift operator in C. Assuming a is a 32 bits integer, and given the following code snippet: int i = 520; a = a < < 2; a = a >> 3; What are the results of a in each line? int a = 520; a= a = a < < 2; a= a = a >> 3; a=
Step by Step Solution
3.38 Rating (148 Votes )
There are 3 Steps involved in it
Left shifting a number by n positions is equal to multiplying ... View full answer
Get step-by-step solutions from verified subject matter experts
