CJCoding With Joseph
15free / daySign inCreate account
Back to Code Walkthrough

Left Shift Multiplies by Powers of Two

C code walkthrough · Question 24
mediumOperators

Code

Read carefully. What does this print?
1#include <stdio.h>
2int main() {
3 int a = 1 << 4;
4 int b = 3 << 2;
5 printf("%d %d\n", a, b);
6 return 0;
7}

Your answer