c << operator
/*
* The << operator shifts the bits of an integer a certan amount of steps to the left
* So a << n means shifting the bits of a to the left n times
*/
#include <stdio.h>
int main() {
int a = 10; // 00001010 in binary
int n = 2;
printf("Result : %d\n", a << n);
// Result is 40 which is OO101000 in binary
return 0;
}
// This also means that a << n is an equivalent to a * 2^n