Question: a.) Does 2 get printed out to the screen by the following code segment? if so, why is it ? i=2; printf(%d , (i%3) ?
a.) Does 2 get printed out to the screen by the following code segment? if so, why is it ?
i=2;
printf("%d ", (i%3) ? i: 2*i);
b.)A and B are both 8-bit values in binary A = 0011 1110 and B= 1101 1010 . Compute the following results.
| Operations | Result in binary |
| A | B | |
| A ^ B | |
| A << 2 | |
| B >> 3 |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
