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;
}

Слідкуй за CodeGalaxy

Мобільний додаток Beta

Get it on Google Play
Зворотній Зв’язок
Cosmo
Зареєструйся Зараз
або Підпишись на майбутні тести