Created
August 2, 2019 11:30
-
-
Save vansika/b200f9e79bb251e8cbd521527c8c58fd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
num = 2017 | |
int start(int num) | |
{ | |
int count = 0; | |
while (num > 0) { | |
++count; | |
num = (num - 1) & num; | |
} | |
return count; | |
} | |
} | |
a)25 | |
b)1 | |
c)7 | |
d)8 | |
Ans) c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment