如何按位循环左移,或右移?
求解
int num = 1; int offsetValue = 3; num = num << offsetValue; printf("%d\n",num); num = num >> offsetValue; printf("%d\n",num);
int num = 1;int offsetValue = 3;num << offsetValue;num >> offsetValue;