Computer Science, asked by ankitkmr8987, 2 months ago

Complete the following C instructions (fill up the ___ ) so

that the output of the following printf statements is equal

to the value as shown in the corresponding comments .
printf(“ %d”, 15 >> ___ ) ; // 3

printf(“ %d”, ____ << 2 ) ; // 32

printf( “ %d”, 8 ____ 15 ) ; // 8 (fill with bitwise

operator)

printf(“ %d”, 9 & ____ ) ; // 1

printf(“ % “, 12 & 5 ^ _____ ) ; //7​

Answers

Answered by aayush1194
0

Answer:

1) 2

2)8

3)&

4)1

5)3

Explanation:

#include <stdio.h>

int main()

{

printf("%d",15>>2);

return 0;

}

can put the code like this and run the code

also check out how the operators are used.

Similar questions