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
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
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