What will printed out by cout?

#include <iostream>

using namespace std;

int &test() {
    static int a = 3;
    return a;
}

int main() {
    ++++++test();
        
    cout << test() << endl;
    return 0;
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback