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';
}
#include <iostream>
int main() {
int first = 10;
int second = 20;
int& current = first;
current = second;
second = 30;
std::cout << first << ' ' << current << ' ' << second << '\n';
}