CJCoding With Joseph
← Back to Question List
C Code Walkthrough #24

Left Shift Multiplies by Powers of Two

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