Lifetime and Ownership
Lifetime and Ownership Quiz
Question 1 of 425%
What does this complete program print, in order?
cpp
#include <iostream>
class Mark {
public:
~Mark() { std::cout << "Done\n"; }
};
int main() {
{
Mark mark;
std::cout << "Inside\n";
}
std::cout << "Outside\n";
}