#include <iostream> int main() { int i = 3; int c = 0; while(i) { ++c; i ^= i & -i; } std::cout << c; return 0; }
Login in to like
Login in to comment
or Read more about C++ Quizzes
Login in to like
Login in to comment