What will be printed as a result of the following code execution?
#include <iostream>
using namespace std;

struct A {
    A& operator++(int) {
        cout << "++";
        return *this;
    }

    A& operator--(int){
        cout << "--";
        return *this;
    }
};

int main() {
    A a;
    a++--;
    return 0;
}

Следи за CodeGalaxy

Мобильное приложение Beta

Get it on Google Play
Обратная Связь
Cosmo
Зарегистрируйся сейчас
или Подпишись на будущие тесты