What does this program print?

from References
C++23 (GCC 13.3.0) beginner 2 min

What does this program print?

C++
#include <iostream>

int main() {
    int first = 10;
    int second = 20;
    int& current = first;
    current = second;
    second = 30;
    std::cout << first << ' ' << current << ' ' << second << '\n';
}
Open in playground
Report an error