What will be printed out as a result of the following code execution?

#include <iostream>

int main()
    int i = 3;
    int c = 0;
        i ^= i & -i;
    std::cout << c;
    return 0;

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
C++ quizzes
Sign Up Now
or Subscribe for future quizzes