Question: 1. Given the following C program, write the output for each printf O statement. #include int main( void) unsigned int wl, w2, w3, x; w1

 1. Given the following C program, write the output for each

1. Given the following C program, write the output for each printf O statement. #include int main( void) unsigned int wl, w2, w3, x; w1 0x23 W2 = 0x46; w3 = 0x1 3a; printf( "wl & w2 = %xin", wl&w2 ); printf( "w 1 I w2-%x1n", wl[w2 ); printf( "~w1 = %xin", ~wl ); printf( "w1](-w1&w3 ) = %xm", wll(-w2 & w3 ) ); wi w2 printf( "wl is %x, w2 is %xIn", wl, w2 ); * Shifting bits in a word*/ w1=0x1; w2 = 0x42; w2 > 2 is %xin", w2 >> 2 ); return 0

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!