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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!