Question: int prob 2 5 9 ( int x , int y ) { return ( y & ~ 0 xFF ) | ( x &
int probint x int y
return y & ~xFFx & xFF;
unsigned replacebyteunsigned x int i unsigned char b
unsigned mask xFF i ;
return x & ~maskb i ;
int probAint x
return x & xFFxFF;
int probBint x
return x & xFF;
int probCint x
return x & xFFFFFFxFFFFFF;
int leftmostoneunsigned x
x x ;
x x ;
x x ;
x x ;
x x ;
return x & ~x ;
int loweronemaskint n
int mask n ;
return mask mask ;
int main
problem
printf
Problem :
;
int x xABCDEF;
int y x;
printfxX
probx y;
problem
printf
Problem :
;
printfxX
replacebytexxAB;
printfxX
replacebytexxAB;
problem
printf
Problem :
;
printfd
probAx; returns
printfd
probB; returns
printfd
probCx; returns
problem
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
