info@avatto.com
+91-9920808017
0. The following 'c' program main() { unsigned int m[]={0.01,0.02,0.04,0.08,0.10,0.20,0.40,0.80}; unsigned char n,i; scanf("%d",&n); for(i=0;i<=7;i++) if(n&m[i]) printf("\nyes"); }
Putting of all bits which are on in the number n
Testing whether the individual bits of n are on or off
Would give an error
Undefined
You must be logged in to post a comment.
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login
You must be logged in to post a comment.