0
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 5;
printf("%d %d", x << 2 >> 1, ~x & 0xF);
return 0;
}- A5 10
- B10 6
- C20 10
- D10 10
Correct answer: D
What is the output of the following C program?
#include <stdio.h>
int main() {
int x = 5;
printf("%d %d", x << 2 >> 1, ~x & 0xF);
return 0;
}