what will be the output of the following code snippet
C (Programming Language)
Q68. What will be the output of the following code snippet?
#include <stdio.h>
void solve() {
int x = 2;
printf("%d", (x << 1) + (x >> 1));
}
int main() {
solve();
return 0;
}
- 5
- 4
- 2
- 1