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

< < 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

1 Expert Approved Answer
Step: 1 Unlock

Left shifting a number by n positions is equal to multiplying ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!