Question: Indicate which type of shift is used for each variable in the following C code: int a , b; unsigned int c; . . .

Indicate which type of shift is used for each variable in the following C code:
int a, b;
unsigned int c;
...
a = a <<4
b = b >>1
c = c >>2
a: Arithmetic shift right, logical shift left, or logical shift right? Choose one.
b: Arithmetic shift right, logical shift left, or logical shift right? Choose one.
c: Arithmetic shift right, logical shift left, or logical shift right? Choose one.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!