Easy
Binding a const reference to a temporary
What does this program print?
main.cpp
#include <iostream>
#include <string>
int main() {
const std::string& r = std::string("Hello") + " World";
std::cout << r << std::endl;
}6 of 117 in C++
What does this program print?
#include <iostream>
#include <string>
int main() {
const std::string& r = std::string("Hello") + " World";
std::cout << r << std::endl;
}