A
Q. What will be the output of the following code snippet?
Code:
#include <stdio.h>
void solve() {
int x = 2;
printf("%d", (x << 1) + (x >> 1));
}
int main() {
solve();
return 0;
}
void solve() {
int x = 2;
printf("%d", (x << 1) + (x >> 1));
}
int main() {
solve();
return 0;
}
- Correct Answer - Option(A)
- Views: 14
- Filed under category C Programming
- Hashtags:
Discusssion
Login to discuss.