info@avatto.com
+91-9920808017
0. The following 'C' program { unsigned int num; int c=0 scanf("%u",&num); for(;num;num>>=1) { if(num &1) c++; } printf("%d",c); }
Counts the number of bits which are on in the number num
Sets all bits in the number num to 1
Sets bits in the number num to 0
Error
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.