Interview Questions and Answers :: Cisco
Home > Experience Archives > Cisco > Interview Question Set 7 > Discussion
5. What does this do?
int a( int i ) {
int c = 0;
while( i ) {
if( i & 1 ) { c++; }
i >>= 1;
}
return c;
}
Answer:
No Discussion on this question yet!
No Discussion on this question yet!