#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main() {
printf("left shift 1 = %d\n", 1 << 1);
printf("left shift 2 = %d\n", 1 << 2);
printf("left shift 3 = %d\n", 1 << 3);
printf("left shift 4 = %d\n", 1 << 4);
printf("left shift 5 = %d\n", 1 << 5);
printf("left shift 6 = %d\n", 1 << 6);
printf("left shift 7 = %d\n", 1 << 7);
return 0;
}
and I got the output like this:
left shift 1 = 2
left shift 2 = 4
left shift 3 = 8
left shift 4 = 16
left shift 5 = 32
left shift 6 = 64
left shift 7 = 128
It seem correct for number 1 and 2, but what happened to other numbers from 3 to 7?