Skip to main content
🔮 Output PredictionC+ C++ Hard⚡+35 XP

Move Semantics

After std::move, what is the state of s1?

C++
string s1 = "hello";
string s2 = move(s1);
cout << s1.size();

🔮 What is the output?