>=1) { if(num & 1) c++; } printf("%d", c); return 0;}" />
>=1) { if(num & 1) c++; } printf("%d", c); return 0;}" />
>=1) { if(num & 1) c++; } printf("%d", c); return 0;}" />
C Programming Language MCQ Operators and Enums in C Language
⚠ Report ✓ Question Verified Copy Link
#include int main() { unsigned int num; int c=0; scanf("%u", &num); for(;num;num>>=1) { if(num & 1) c++; } printf("%d", c); return 0; }
Learn More MCQ Questions from C Programming Language MCQ Operators and Enums in C Language