C Questions.
1) 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;
}
Explanation: The above example uses the knowledge of bitwis...
shreshtxa.hashnode.dev13 min read